mirror of
https://github.com/btcsuite/btcd.git
synced 2024-11-19 09:50:08 +01:00
wire/msgtx: use writeTxWitnessBuf in txn serialization
This commit is contained in:
parent
3bfd0c6cb3
commit
3a91303a1a
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user