test: minor.

This commit is contained in:
Christopher Jeffrey 2017-08-13 08:05:37 -07:00
parent b3f02eb70a
commit e1e71a6e81
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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;