From 7fd9d94637ffe4b2236a025232fe8dd0596c91ce Mon Sep 17 00:00:00 2001 From: vbot Date: Mon, 3 Apr 2023 15:41:05 +0200 Subject: [PATCH] Shell: fix inconsistent hash on reorg in singleprocess mode --- src/lib_shell/block_validator_process.ml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib_shell/block_validator_process.ml b/src/lib_shell/block_validator_process.ml index c96f1f9e7388..3e33526e1f18 100644 --- a/src/lib_shell/block_validator_process.ml +++ b/src/lib_shell/block_validator_process.ml @@ -284,7 +284,8 @@ module Internal_validator_process = struct Ptime.diff then_ now in validator.cache <- - Some {context_hash = predecessor_resulting_context_hash; cache} ; + Some + {context_hash = result.validation_store.resulting_context_hash; cache} ; validator.preapply_result <- None ; let*! () = Events.(emit validation_success (block_hash, timespan)) in return result -- GitLab