From 54c388b7b4c0405ecb7ba9f5c440c0cb625de441 Mon Sep 17 00:00:00 2001 From: tersec Date: Fri, 20 Nov 2020 14:23:55 +0100 Subject: [PATCH] close slashing protection database (#2050) --- beacon_chain/nimbus_beacon_node.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beacon_chain/nimbus_beacon_node.nim b/beacon_chain/nimbus_beacon_node.nim index 6ad2b3c4e..daba2c461 100644 --- a/beacon_chain/nimbus_beacon_node.nim +++ b/beacon_chain/nimbus_beacon_node.nim @@ -746,8 +746,9 @@ proc stop*(node: BeaconNode) = if not node.config.inProcessValidators: node.vcProcess.close() waitFor node.network.stop() + node.attachedValidators.slashingProtection.close() node.db.close() - notice "Database closed" + notice "Databases closed" proc run*(node: BeaconNode) = if bnStatus == BeaconNodeStatus.Starting: