Node: update shutdown order to prevent some leveldb read errors.

This commit is contained in:
Benjamin Canou 2017-11-28 14:44:22 +01:00
parent 4b0896300d
commit 606c6e55e4

View File

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