Skip to content

Commit

Permalink
keyguard match: edge case for gossip msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
arjain4 committed Apr 29, 2024
1 parent 02788ae commit 3b6a1dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/disco/keyguard/fd_keyguard_match.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ FD_FN_PURE int
fd_keyguard_payload_matches_gossip_msg( uchar const * data,
ulong sz ) {

// TODO: this causes potential ambiguity with the shred messages
if ( sz==32 ) return 1;
/* Every gossip message contains a 4 byte enum variant tag (at the
beginning of the message) and a 32 byte public key (at an arbitrary
location). */
Expand Down

0 comments on commit 3b6a1dc

Please sign in to comment.