From 606c6e55e4a1115e69354db4c005814a63e0cc66 Mon Sep 17 00:00:00 2001 From: Benjamin Canou Date: Tue, 28 Nov 2017 14:44:22 +0100 Subject: [PATCH] Node: update shutdown order to prevent some leveldb read errors. --- src/node/shell/node.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/shell/node.ml b/src/node/shell/node.ml index 4be8e7f67..068552985 100644 --- a/src/node/shell/node.ml +++ b/src/node/shell/node.ml @@ -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 {