diff --git a/test/block-test.js b/test/block-test.js index 05cb8599..8a2258bf 100644 --- a/test/block-test.js +++ b/test/block-test.js @@ -357,10 +357,10 @@ describe('Block', function() { assert.bufferEqual(cblock1.toBlock().toRaw(), block.toRaw()); }); - for (const [name, sigops, weight] of sigopsVectors) { - const ctx = common.readBlock(name); - for (const cache of [false, true]) { - const word = cache ? 'with' : 'without'; + for (const cache of [false, true]) { + const word = cache ? 'with' : 'without'; + for (const [name, sigops, weight] of sigopsVectors) { + const ctx = common.readBlock(name); it(`should count sigops for ${name} (${word} cache)`, () => { const [block, view] = ctx.getBlock(); const flags = Script.flags.VERIFY_P2SH | Script.flags.VERIFY_WITNESS;