fix tx comment serialization

This commit is contained in:
Jeremiah Buddenhagen 2018-02-05 15:33:47 -08:00
parent 170abc0605
commit 0d708ceab6

View File

@ -934,8 +934,8 @@ def SegwitVersion1SignatureHash(script, txTo, inIdx, hashtype, amount):
ss += struct.pack("<I", txTo.vin[inIdx].nSequence)
ss += ser_uint256(hashOutputs)
ss += struct.pack("<i", txTo.nLockTime)
ss += struct.pack("<I", hashtype)
if txTo.nVersion >= 2:
ss += ser_string(txTo.txComment)
ss += struct.pack("<I", hashtype)
return hash256(ss)