From 0d809efdf154f76b380a58be377b19e59f0c6a8a Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Fri, 29 Mar 2024 08:00:08 -0500 Subject: [PATCH] GH-2348 Use correct strong digest --- libraries/chain/controller.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/chain/controller.cpp b/libraries/chain/controller.cpp index dceeacd12f..7d8e3a2e24 100644 --- a/libraries/chain/controller.cpp +++ b/libraries/chain/controller.cpp @@ -763,12 +763,12 @@ struct building_block { // Create the valid structure for validating_bsp if it does not // have one. if (!validating_bsp->valid) { - validating_bsp->valid = bb.parent.new_valid(bhs, action_mroot, bb.parent.strong_digest); + validating_bsp->valid = bb.parent.new_valid(bhs, action_mroot, validating_bsp->strong_digest); validating_bsp->action_mroot = action_mroot; // caching for constructing finality_data. Only needed when block is commited. } } else { // Create the valid structure for producing - valid = bb.parent.new_valid(bhs, action_mroot, bb.parent.strong_digest); + valid = bb.parent.new_valid(bhs, action_mroot, bhs.compute_finality_digest()); } assembled_block::assembled_block_if ab{