chain: s/bad-witness-merkle-size/bad-witness-nonce-size/

This commit is contained in:
Christopher Jeffrey 2017-02-11 12:54:24 -08:00
parent 43c491bebe
commit dcf705d8bc
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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* () {