wire/msgtx: use WriteTxOutBuf in txn serialization

This commit is contained in:
Conner Fromknecht 2020-01-24 19:41:26 -08:00 committed by Olaoluwa Osuntokun
parent 7c8844f56f
commit 48d31e5926
No known key found for this signature in database
GPG Key ID: 3BBD59E99B280306

View File

@ -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
}