mirror of
https://github.com/btcsuite/btcd.git
synced 2024-11-19 09:50:08 +01:00
wire/msgtx: use WriteTxOutBuf in txn serialization
This commit is contained in:
parent
7c8844f56f
commit
48d31e5926
@ -790,7 +790,7 @@ func (msg *MsgTx) btcEncode(w io.Writer, pver uint32, enc MessageEncoding,
|
||||
}
|
||||
|
||||
for _, to := range msg.TxOut {
|
||||
err = WriteTxOut(w, pver, msg.Version, to)
|
||||
err = WriteTxOutBuf(w, pver, msg.Version, to, buf)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user