Node: update shutdown order to prevent some leveldb read errors.
This commit is contained in:
parent
4b0896300d
commit
606c6e55e4
@ -117,9 +117,9 @@ let create { genesis ; store_root ; context_root ;
|
||||
~bootstrap_threshold
|
||||
?max_child_ttl mainnet_state >>= fun mainnet_validator ->
|
||||
let shutdown () =
|
||||
State.close state >>= fun () ->
|
||||
P2p.shutdown p2p >>= fun () ->
|
||||
Validator.shutdown validator >>= fun () ->
|
||||
State.close state >>= fun () ->
|
||||
Lwt.return_unit
|
||||
in
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user