mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-02-01 15:45:06 +00:00
[node] fix: stop validator (#401)
This commit is contained in:
parent
5ce655db47
commit
515304f9c5
@ -421,5 +421,8 @@ proc stop*(node: CodexNodeRef) {.async.} =
|
||||
if hostContracts =? node.contracts.host:
|
||||
await hostContracts.stop()
|
||||
|
||||
if validatorContracts =? node.contracts.validator:
|
||||
await validatorContracts.stop()
|
||||
|
||||
if not node.blockStore.isNil:
|
||||
await node.blockStore.close
|
||||
|
Loading…
x
Reference in New Issue
Block a user