test: minor.
This commit is contained in:
parent
b3f02eb70a
commit
e1e71a6e81
@ -357,10 +357,10 @@ describe('Block', function() {
|
|||||||
assert.bufferEqual(cblock1.toBlock().toRaw(), block.toRaw());
|
assert.bufferEqual(cblock1.toBlock().toRaw(), block.toRaw());
|
||||||
});
|
});
|
||||||
|
|
||||||
for (const [name, sigops, weight] of sigopsVectors) {
|
for (const cache of [false, true]) {
|
||||||
const ctx = common.readBlock(name);
|
const word = cache ? 'with' : 'without';
|
||||||
for (const cache of [false, true]) {
|
for (const [name, sigops, weight] of sigopsVectors) {
|
||||||
const word = cache ? 'with' : 'without';
|
const ctx = common.readBlock(name);
|
||||||
it(`should count sigops for ${name} (${word} cache)`, () => {
|
it(`should count sigops for ${name} (${word} cache)`, () => {
|
||||||
const [block, view] = ctx.getBlock();
|
const [block, view] = ctx.getBlock();
|
||||||
const flags = Script.flags.VERIFY_P2SH | Script.flags.VERIFY_WITNESS;
|
const flags = Script.flags.VERIFY_P2SH | Script.flags.VERIFY_WITNESS;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user