Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
agnxsh committed Dec 3, 2024
1 parent b9befdb commit 6f0880f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions beacon_chain/sync/request_manager.nim
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,14 @@ proc fetchBlobsFromNetwork(self: RequestManager,
proc checkPeerCustody*(rman: RequestManager,
peer: Peer):
bool =
## Returns true if the peer custodies atleast
## ONE of the common custody columns, straight
## away returns true if the peer is a supernode.
# Returns true if the peer custodies atleast
# ONE of the common custody columns, straight
# away returns true if the peer is a supernode.
if rman.supernode:
# For a supernode, it is always best/optimistic
# to filter other supernodes, rather than filter
# too many full nodes that have a subset of the custody
# columns
if peer.lookupCscFromPeer() ==
DATA_COLUMN_SIDECAR_SUBNET_COUNT.uint64:
return true
Expand Down

0 comments on commit 6f0880f

Please sign in to comment.