Skip to content

Commit

Permalink
test for insufficiantbalancespam automated.
Browse files Browse the repository at this point in the history
  • Loading branch information
SurfingNerd committed Jan 10, 2022
1 parent a9fe7d4 commit 1858265
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/regression/runInsufficiantBalanceSpam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,23 @@ export async function insufficientBalanceTest() {
console.log('back1Result: ', back1Result.transactionHash);
console.log('await tx2: might never get fullfilled');

//
// now track if the blockchain is creating empty blocks or not for a time.
// concept:
// const secondsToCheck = 60;

// let now = new Date(Date.now());
// const end = new Date();
// end.setSeconds(now.getSeconds() + secondsToCheck);

// let lastCheckedBlock = await web3.eth.getBlockNumber();

// while(Date.now() < end.getDate()) {


// }


// anzeigen
const back2Result = await txback_2;

console.log('Uh it worked!!');
Expand Down

0 comments on commit 1858265

Please sign in to comment.