Skip to content

Commit

Permalink
expanded message context to contain the roots, which will make it lon…
Browse files Browse the repository at this point in the history
…g but useful.

Signed-off-by: Paul Harris <paul.harris@consensys.net>
  • Loading branch information
rolfyone committed Jan 17, 2025
1 parent b32cab9 commit 76c04db
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,13 @@ protected StateAndBlockSummary(final BeaconBlockSummary blockSummary, final Beac
// This check would allow a state to have an empty slot, and still be a valid block and state.
checkArgument(
latestBlockHeaderBodyRoot.equals(blockSummary.getBodyRoot()),
"Block root for the state must match the supplied state at slot "
+ blockSummary.getSlot());
String.format(
"Latest Block body root %s in state at slot %s must match the block summary root. "
+ "Block slot %s, block body root %s",
latestBlockHeaderBodyRoot,
state.getSlot(),
blockSummary.getSlot(),
blockSummary.getBodyRoot()));
}
this.blockSummary = blockSummary;
this.state = state;
Expand Down

0 comments on commit 76c04db

Please sign in to comment.