File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -775,16 +775,16 @@ async def handle_ihave(
775
775
# Get list of all seen (seqnos, from) from the (seqno, from) tuples in
776
776
# seen_messages cache
777
777
seen_seqnos_and_peers = [
778
- seqno_and_from for seqno_and_from in self .pubsub .seen_messages .cache .keys ()
778
+ str (seqno_and_from )
779
+ for seqno_and_from in self .pubsub .seen_messages .cache .keys ()
779
780
]
780
781
781
782
# Add all unknown message ids (ids that appear in ihave_msg but not in
782
783
# seen_seqnos) to list of messages we want to request
783
- # FIXME: Update type of message ID
784
- msg_ids_wanted : list [Any ] = [
784
+ msg_ids_wanted : list [str ] = [
785
785
msg_id
786
786
for msg_id in ihave_msg .messageIDs
787
- if literal_eval ( msg_id ) not in seen_seqnos_and_peers
787
+ if msg_id not in seen_seqnos_and_peers
788
788
]
789
789
790
790
# Request messages with IWANT message
Original file line number Diff line number Diff line change
1
+ Fix type for gossipsub_message_id for consistency and security
You can’t perform that action at this time.
0 commit comments