From e1e71a6e812c129f3b758d6e7cb256c2374cf6b7 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sun, 13 Aug 2017 08:05:37 -0700 Subject: [PATCH] test: minor. --- test/block-test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;