mirror of
https://github.com/btcsuite/btcd.git
synced 2026-08-19 13:17:36 +02:00
wire/msgtx: use readScriptBuf in txn serialization
This commit is contained in:
parent
3a91303a1a
commit
0cf8c19d5a
1 changed files with 3 additions and 2 deletions
|
|
@ -623,8 +623,9 @@ func (msg *MsgTx) btcDecode(r io.Reader, pver uint32, enc MessageEncoding,
|
|||
// item itself.
|
||||
txin.Witness = make([][]byte, witCount)
|
||||
for j := uint64(0); j < witCount; j++ {
|
||||
txin.Witness[j], err = readScript(
|
||||
r, pver, maxWitnessItemSize, "script witness item",
|
||||
txin.Witness[j], err = readScriptBuf(
|
||||
r, pver, buf, maxWitnessItemSize,
|
||||
"script witness item",
|
||||
)
|
||||
if err != nil {
|
||||
returnScriptBuffers()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue