mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-01 01:08:27 +00:00
refactor peer selection
This commit is contained in:
parent
9cab15e2cf
commit
b8d03ef913
@ -303,10 +303,10 @@ proc checkPeerCustody*(rman: RequestManager,
|
||||
remoteCustodySubnetCount))
|
||||
|
||||
for local_column in localCustodyColumns:
|
||||
if local_column in remoteCustodyColumns:
|
||||
return true
|
||||
else:
|
||||
if local_column notin remoteCustodyColumns:
|
||||
return false
|
||||
else:
|
||||
return true
|
||||
|
||||
else:
|
||||
return false
|
||||
|
@ -303,10 +303,10 @@ proc filterCustodyPeersBeforeColumnSync*(man: SyncManager,
|
||||
remoteCustodySubnetCount))
|
||||
|
||||
for local_column in localCustodyColumns:
|
||||
if local_column in remoteCustodyColumns:
|
||||
return true
|
||||
else:
|
||||
if local_column notin remoteCustodyColumns:
|
||||
return false
|
||||
else:
|
||||
return true
|
||||
|
||||
else:
|
||||
return false
|
||||
|
Loading…
x
Reference in New Issue
Block a user