close slashing protection database (#2050)

This commit is contained in:
tersec 2020-11-20 14:23:55 +01:00 committed by GitHub
parent 1d7fb2ed0c
commit 54c388b7b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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: