Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions scripts/airdrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,6 @@ const waitForConfirmation = async (algod, txId, timeout) => {
}
}

// pull in additional blacklist addresses from API
try {
const blacklistFromApi = await fetchBlacklist();
blacklist = blacklist.concat(blacklistFromApi);
} catch (error) {
exitMenu(`Unable to fetch blacklist from API: `, error);
}

let alreadySent = [];
let resume = false;

Expand Down
14 changes: 7 additions & 7 deletions scripts/epoch_calc.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { algod } from '../include/algod.js';
import { sleep, fetchBlacklist, writeToCSV, getClosestBlock, validateFile, csvToJson } from '../include/utils.js';
import sqlite3 from 'sqlite3';

const db = new sqlite3.Database('proposers.db');
const db = new sqlite3.Database('../db/proposers.db');

// show help menu and exit
export const exitMenu = (err) => {
Expand Down Expand Up @@ -145,12 +145,12 @@ async function getHighestStoredBlock() {
}

// pull in additional blacklist addresses from API
try {
const blacklistFromApi = await fetchBlacklist();
blacklist = blacklist.concat(blacklistFromApi);
} catch (error) {
exitMenu(`Unable to fetch blacklist from API: `, error);
}
// try {
// const blacklistFromApi = await fetchBlacklist();
// blacklist = blacklist.concat(blacklistFromApi);
// } catch (error) {
// exitMenu(`Unable to fetch blacklist from API: `, error);
// }
blacklist = blacklist.map(item => item.account);

let proposers = {};
Expand Down