Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove blacklist API call #3

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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