wire/msgtx: use writeTxWitnessBuf in txn serialization

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

View File

@ -802,7 +802,7 @@ func (msg *MsgTx) btcEncode(w io.Writer, pver uint32, enc MessageEncoding,
// within the transaction.
if doWitness {
for _, ti := range msg.TxIn {
err = writeTxWitness(w, pver, msg.Version, ti.Witness)
err = writeTxWitnessBuf(w, pver, msg.Version, ti.Witness, buf)
if err != nil {
return err
}