diff --git a/wtxmgr/tx.go b/wtxmgr/tx.go index 940bba3..92eb9de 100644 --- a/wtxmgr/tx.go +++ b/wtxmgr/tx.go @@ -111,8 +111,9 @@ func NewTxRecordFromMsgTx(msgTx *wire.MsgTx, received time.Time) (*TxRecord, err MsgTx: *msgTx, Received: received, SerializedTx: buf.Bytes(), + Hash: msgTx.TxSha(), } - copy(rec.Hash[:], chainhash.DoubleHashB(rec.SerializedTx)) + return rec, nil }