Skip to content

Commit

Permalink
test: stabilize mempool reorg test
Browse files Browse the repository at this point in the history
  • Loading branch information
pinheadmz committed May 17, 2021
1 parent e759938 commit cbf60ae
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions test/mempool-test.js
Expand Up @@ -1002,13 +1002,8 @@ describe('Mempool', function() {
// Fast-forward the next block's timestamp to allow claim.
const data = claim.getData(mempool.network);
const [block1] = await getMockBlock(chain);
block1.time = data.inception + 10000;
try {
ownership.ignore = true;
await chain.add(block1, VERIFY_BODY);
} finally {
ownership.ignore = false;
}
block1.time = data.inception + 1;
await chain.add(block1, VERIFY_BODY);

// Add a few more blocks
let block2;
Expand Down

0 comments on commit cbf60ae

Please sign in to comment.