mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-11 06:46:10 +00:00
Don't start the Eth1Monitor when there are no validators attached
This is a temporary revert of the new logic introduced in d6cd1cd46c357fcbe7e44bdcdb94ebc6d265dcdc, because it leads to a memory leak in the Eth1Monitor caused by the lack of pruning of the Eth1Chain when the validator duties are not executed.
This commit is contained in:
parent
ba42b2b316
commit
200902ccb3
@ -1162,7 +1162,7 @@ proc start(node: BeaconNode) {.raises: [Defect, CatchableError].} =
|
||||
|
||||
waitFor node.initializeNetworking()
|
||||
|
||||
if node.eth1Monitor != nil:
|
||||
if node.eth1Monitor != nil and node.attachedValidators[].count > 0:
|
||||
node.eth1Monitor.start()
|
||||
else:
|
||||
notice "Running without execution chain monitor, block producation partially disabled"
|
||||
|
Loading…
x
Reference in New Issue
Block a user