File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ def __init__(self,
74
74
self .scheduler = StateSync (root_hash , account_db )
75
75
self ._handler = PeerRequestHandler (self .chaindb , self .logger , self .cancel_token )
76
76
self ._active_requests : Dict [ETHPeer , Tuple [float , List [Hash32 ]]] = {}
77
- self ._peer_missing_nodes : Dict [ETHPeer , List [Hash32 ]] = collections .defaultdict (list )
77
+ self ._peer_missing_nodes : Dict [ETHPeer , Set [Hash32 ]] = collections .defaultdict (set )
78
78
self ._executor = get_asyncio_executor ()
79
79
80
80
@property
@@ -156,7 +156,7 @@ async def _handle_msg(
156
156
node_keys = await loop .run_in_executor (self ._executor , list , map (keccak , msg ))
157
157
158
158
missing = set (requested_node_keys ).difference (node_keys )
159
- self ._peer_missing_nodes [peer ].extend (missing )
159
+ self ._peer_missing_nodes [peer ].update (missing )
160
160
if missing :
161
161
await self .request_nodes (missing )
162
162
You can’t perform that action at this time.
0 commit comments