[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…
Reference in New Issue