From 4829ff793b5222c908043c57903ab69c4d6e4633 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Fri, 24 Jan 2020 19:38:43 -0800 Subject: [PATCH] wire/msgtx: use writeTxInBuf in txn encoding --- wire/msgtx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/msgtx.go b/wire/msgtx.go index b1cdabfa..231d5f06 100644 --- a/wire/msgtx.go +++ b/wire/msgtx.go @@ -777,7 +777,7 @@ func (msg *MsgTx) btcEncode(w io.Writer, pver uint32, enc MessageEncoding, } for _, ti := range msg.TxIn { - err = writeTxIn(w, pver, msg.Version, ti) + err = writeTxInBuf(w, pver, msg.Version, ti, buf) if err != nil { return err }