fix sighash v1.
This commit is contained in:
parent
89a8329a76
commit
e31a4527b4
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user