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) {
|
&& (type & 0x1f) !== constants.hashType.none) {
|
||||||
hashSequence = new BufferWriter();
|
hashSequence = new BufferWriter();
|
||||||
for (i = 0; i < this.inputs.length; i++)
|
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());
|
hashSequence = utils.dsha256(hashSequence.render());
|
||||||
} else {
|
} else {
|
||||||
hashSequence = utils.slice(constants.zeroHash);
|
hashSequence = utils.slice(constants.zeroHash);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user