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,9 +1581,7 @@ 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
|
||||||
|
await node.reconstructAndSendDataColumns()
|
||||||
if node.config.subscribeAllSubnets:
|
|
||||||
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
|
||||||
# slot does not interfere with propagation of messages and with VC duties.
|
# slot does not interfere with propagation of messages and with VC duties.
|
||||||
|
|
Loading…
Reference in New Issue