close slashing protection database (#2050)
This commit is contained in:
parent
1d7fb2ed0c
commit
54c388b7b4
|
@ -746,8 +746,9 @@ proc stop*(node: BeaconNode) =
|
||||||
if not node.config.inProcessValidators:
|
if not node.config.inProcessValidators:
|
||||||
node.vcProcess.close()
|
node.vcProcess.close()
|
||||||
waitFor node.network.stop()
|
waitFor node.network.stop()
|
||||||
|
node.attachedValidators.slashingProtection.close()
|
||||||
node.db.close()
|
node.db.close()
|
||||||
notice "Database closed"
|
notice "Databases closed"
|
||||||
|
|
||||||
proc run*(node: BeaconNode) =
|
proc run*(node: BeaconNode) =
|
||||||
if bnStatus == BeaconNodeStatus.Starting:
|
if bnStatus == BeaconNodeStatus.Starting:
|
||||||
|
|
Loading…
Reference in New Issue