mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-08 00:13:08 +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:
|
if hostContracts =? node.contracts.host:
|
||||||
await hostContracts.stop()
|
await hostContracts.stop()
|
||||||
|
|
||||||
|
if validatorContracts =? node.contracts.validator:
|
||||||
|
await validatorContracts.stop()
|
||||||
|
|
||||||
if not node.blockStore.isNil:
|
if not node.blockStore.isNil:
|
||||||
await node.blockStore.close
|
await node.blockStore.close
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user