Skip to content

Commit

Permalink
GH-2348 Use correct strong digest
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Mar 29, 2024
1 parent 809e4ab commit 0d809ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/chain/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 0d809ef

Please sign in to comment.