mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-08-01 12:31:23 +00:00
Fix TxOut serialization (fixes SIGHASH_SINGLE hashing)
This commit is contained in:
@@ -138,7 +138,7 @@ public class TransactionOutput extends ChildMessage implements Serializable {
|
||||
@Override
|
||||
protected void bitcoinSerializeToStream(OutputStream stream) throws IOException {
|
||||
checkNotNull(scriptBytes);
|
||||
Utils.uint64ToByteStreamLE(getValue(), stream);
|
||||
Utils.int64ToByteStreamLE(getValue().longValue(), stream);
|
||||
// TODO: Move script serialization into the Script class, where it belongs.
|
||||
stream.write(new VarInt(scriptBytes.length).encode());
|
||||
stream.write(scriptBytes);
|
||||
|
Reference in New Issue
Block a user