fix sighash v1.

This commit is contained in:
Christopher Jeffrey 2016-03-15 15:01:31 -07:00
parent 89a8329a76
commit e31a4527b4

View File

@ -308,7 +308,7 @@ TX.prototype.signatureHashV1 = function signatureHashV1(index, prev, type) {
&& (type & 0x1f) !== constants.hashType.none) {
hashSequence = new BufferWriter();
for (i = 0; i < this.inputs.length; i++)
p.writeU32(this.inputs[i].sequence);
hashSequence.writeU32(this.inputs[i].sequence);
hashSequence = utils.dsha256(hashSequence.render());
} else {
hashSequence = utils.slice(constants.zeroHash);