Skip to content

Commit

Permalink
access wrong account list
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGoldenEye committed Sep 14, 2020
1 parent 184ca40 commit f24c056
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ async function main() {

console.log('##########################################',);
console.log('Chain:', chain);
if (!chainData.check_accounts.length)
console.log(' no accounts given');


// iterate over all test accounts
chainData.test_accounts.forEach((accountID: string) => {
chainData.check_accounts.forEach((accountID: string) => {
const lastBlock = db().queryFirstRow('SELECT max(height) AS val FROM transactions').val;
const feesReceived = db().queryFirstRow('SELECT sum(feeBalances) AS val FROM transactions WHERE authorId=?', accountID).val;
//const feesPaid = db().queryFirstRow('SELECT COALESCE(sum(partialFee), 0)+COALESCE(sum(tip), 0) AS val FROM transactions WHERE senderId=?', accountID).val;
Expand Down

0 comments on commit f24c056

Please sign in to comment.