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))
|
remoteCustodySubnetCount))
|
||||||
|
|
||||||
for local_column in localCustodyColumns:
|
for local_column in localCustodyColumns:
|
||||||
if local_column in remoteCustodyColumns:
|
if local_column notin remoteCustodyColumns:
|
||||||
return true
|
|
||||||
else:
|
|
||||||
return false
|
return false
|
||||||
|
else:
|
||||||
|
return true
|
||||||
|
|
||||||
else:
|
else:
|
||||||
return false
|
return false
|
||||||
|
@ -303,10 +303,10 @@ proc filterCustodyPeersBeforeColumnSync*(man: SyncManager,
|
|||||||
remoteCustodySubnetCount))
|
remoteCustodySubnetCount))
|
||||||
|
|
||||||
for local_column in localCustodyColumns:
|
for local_column in localCustodyColumns:
|
||||||
if local_column in remoteCustodyColumns:
|
if local_column notin remoteCustodyColumns:
|
||||||
return true
|
|
||||||
else:
|
|
||||||
return false
|
return false
|
||||||
|
else:
|
||||||
|
return true
|
||||||
|
|
||||||
else:
|
else:
|
||||||
return false
|
return false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user