diff --git a/scripts/airdrop.js b/scripts/airdrop.js index 86cba4b..b26bce2 100644 --- a/scripts/airdrop.js +++ b/scripts/airdrop.js @@ -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; diff --git a/scripts/epoch_calc.js b/scripts/epoch_calc.js index 2061c62..b93ba25 100644 --- a/scripts/epoch_calc.js +++ b/scripts/epoch_calc.js @@ -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) => { @@ -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 = {};