chain: s/bad-witness-merkle-size/bad-witness-nonce-size/
This commit is contained in:
parent
43c491bebe
commit
dcf705d8bc
@ -366,7 +366,7 @@ Chain.prototype.verify = co(function* verify(block, prev) {
|
||||
if (!block.getWitnessNonce()) {
|
||||
err = new VerifyError(block,
|
||||
'invalid',
|
||||
'bad-witness-merkle-size',
|
||||
'bad-witness-nonce-size',
|
||||
100);
|
||||
err.malleated = true;
|
||||
throw err;
|
||||
|
||||
@ -505,7 +505,7 @@ describe('Chain', function() {
|
||||
var input = tx.inputs[0];
|
||||
input.witness.set(0, new Buffer(33));
|
||||
input.witness.compile();
|
||||
assert.equal(yield addBlock(attempt), 'bad-witness-merkle-size');
|
||||
assert.equal(yield addBlock(attempt), 'bad-witness-nonce-size');
|
||||
}));
|
||||
|
||||
it('should fail to connect bad witness nonce', co(function* () {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user