Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions wire/msgtx.go
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,11 @@ func (msg *MsgTx) BtcDecode(r io.Reader, pver uint32) error {
copyScripts = false
default:
copyScripts = true

// Prevent caller-provided script slices from being returned to the free
// list.
msg.TxIn = nil
msg.TxOut = nil
}

// returnScriptBuffers is a closure that returns any script buffers that
Expand Down