Skip to content

Commit

Permalink
fix: return immediately on empty nexttx message (#610)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Gianelloni <wolf31o2@blinklabs.io>
  • Loading branch information
wolf31o2 authored May 11, 2024
1 parent c174202 commit 99f51e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions protocol/localtxmonitor/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ func (m *MsgReplyNextTx) UnmarshalCBOR(data []byte) error {
if _, err := cbor.Decode(data, &tmp); err != nil {
return err
}
if tmp == nil {
return nil
}
// We know what the value will be, but it doesn't hurt to use the actual value from the message
m.MessageType = uint8(tmp[0].(uint64))
// The ReplyNextTx message has a variable number of arguments
Expand Down

0 comments on commit 99f51e0

Please sign in to comment.