handling reconstruction condition internally
This commit is contained in:
parent
e7610ece97
commit
75e1bb616b
|
@ -1675,6 +1675,8 @@ proc handlePeer*(peer: Peer) {.async: (raises: [CancelledError]).} =
|
||||||
debug "Peer has low score or there no space in PeerPool",
|
debug "Peer has low score or there no space in PeerPool",
|
||||||
peer = peer, reason = res
|
peer = peer, reason = res
|
||||||
await peer.disconnect(FaultOrError)
|
await peer.disconnect(FaultOrError)
|
||||||
|
of PeerStatus.LowCscError:
|
||||||
|
discard
|
||||||
of PeerStatus.DeadPeerError:
|
of PeerStatus.DeadPeerError:
|
||||||
# Peer's lifetime future is finished, so its already dead,
|
# Peer's lifetime future is finished, so its already dead,
|
||||||
# we do not need to perform gracefull disconect.
|
# we do not need to perform gracefull disconect.
|
||||||
|
|
|
@ -1581,8 +1581,6 @@ proc reconstructAndSendDataColumns*(node: BeaconNode) {.async.} =
|
||||||
proc onSlotEnd(node: BeaconNode, slot: Slot) {.async.} =
|
proc onSlotEnd(node: BeaconNode, slot: Slot) {.async.} =
|
||||||
# Things we do when slot processing has ended and we're about to wait for the
|
# Things we do when slot processing has ended and we're about to wait for the
|
||||||
# next slot
|
# next slot
|
||||||
|
|
||||||
if node.config.subscribeAllSubnets:
|
|
||||||
await node.reconstructAndSendDataColumns()
|
await node.reconstructAndSendDataColumns()
|
||||||
|
|
||||||
# By waiting until close before slot end, ensure that preparation for next
|
# By waiting until close before slot end, ensure that preparation for next
|
||||||
|
|
Loading…
Reference in New Issue