mirror of
https://github.com/kaspanet/kaspad.git
synced 2026-03-07 01:21:44 +00:00
[Nod-25] Add payload hash to wire transaction (#200)
* [NOD-25] Intermediate commit * [NOD-25] Fixed tests crashes * [NOD-25] Fixed tests * [NOD-25] Removed temporary debug code * [NOD-25] Fixed error message
This commit is contained in:
@@ -257,10 +257,14 @@ func shallowCopyTx(tx *wire.MsgTx) wire.MsgTx {
|
||||
// pointers into the contiguous arrays. This avoids a lot of small
|
||||
// allocations.
|
||||
txCopy := wire.MsgTx{
|
||||
Version: tx.Version,
|
||||
TxIn: make([]*wire.TxIn, len(tx.TxIn)),
|
||||
TxOut: make([]*wire.TxOut, len(tx.TxOut)),
|
||||
LockTime: tx.LockTime,
|
||||
Version: tx.Version,
|
||||
TxIn: make([]*wire.TxIn, len(tx.TxIn)),
|
||||
TxOut: make([]*wire.TxOut, len(tx.TxOut)),
|
||||
LockTime: tx.LockTime,
|
||||
SubnetworkID: tx.SubnetworkID,
|
||||
Gas: tx.Gas,
|
||||
PayloadHash: tx.PayloadHash,
|
||||
Payload: tx.Payload,
|
||||
}
|
||||
txIns := make([]wire.TxIn, len(tx.TxIn))
|
||||
for i, oldTxIn := range tx.TxIn {
|
||||
|
||||
Reference in New Issue
Block a user