Skip to content

Commit 99f51e0

Browse files
authored
fix: return immediately on empty nexttx message (#610)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent c174202 commit 99f51e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

protocol/localtxmonitor/messages.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ func (m *MsgReplyNextTx) UnmarshalCBOR(data []byte) error {
167167
if _, err := cbor.Decode(data, &tmp); err != nil {
168168
return err
169169
}
170+
if tmp == nil {
171+
return nil
172+
}
170173
// We know what the value will be, but it doesn't hurt to use the actual value from the message
171174
m.MessageType = uint8(tmp[0].(uint64))
172175
// The ReplyNextTx message has a variable number of arguments

0 commit comments

Comments
 (0)