Create segwit signature hash with floData included :)
This commit is contained in:
parent
86dc7c601a
commit
36f88b398f
@ -711,6 +711,15 @@ TX.prototype.signatureHashV1 = function signatureHashV1(index, prev, value, type
|
|||||||
bw.writeU32(input.sequence);
|
bw.writeU32(input.sequence);
|
||||||
bw.writeBytes(outputs);
|
bw.writeBytes(outputs);
|
||||||
bw.writeU32(this.locktime);
|
bw.writeU32(this.locktime);
|
||||||
|
|
||||||
|
var fOmitTxComment = !!(type & hashType.OMIT_TX_COMMENT);
|
||||||
|
|
||||||
|
if (this.version >= 2 && !fOmitTxComment) {
|
||||||
|
bw.writeVarBytes(Buffer.from(this.strFloData));
|
||||||
|
}
|
||||||
|
|
||||||
|
type &= ~hashType.OMIT_TX_COMMENT;
|
||||||
|
|
||||||
bw.writeU32(type);
|
bw.writeU32(type);
|
||||||
|
|
||||||
return digest.hash256(bw.render());
|
return digest.hash256(bw.render());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user