Skip to content

Commit

Permalink
doc stuff
Browse files Browse the repository at this point in the history
Signed-off-by: garyschulte <[email protected]>
  • Loading branch information
garyschulte committed Jan 22, 2025
1 parent 57f5ee6 commit 11194a8
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public class RebuildBonsaiStateTrieSubCommand implements Runnable {
description =
"when rebuilding the state trie, force the usage of the specified blockhash:stateroot. "
+ "This will bypass block header and worldstate checks. "
+ "e.g. --override-blockhash-and-stateroot=0xdeadbeef..deadbeef:0xc0ffee..coffee",
+ "e.g. --override-blockhash-and-stateroot=0xdeadbeef..deadbeef:0xc0ffee..c0ffee",
arity = "1..1")
private String overrideHashes = null;

Expand Down Expand Up @@ -128,6 +128,12 @@ public void run() {
}
}

/**
* entry point for testing, verify the block hash and state root and rebuild the trie.
*
* @param blockHashAndStateRoot record tuple for block hash and state root.
* @param worldStateStorage bonsai worldstate storage.
*/
@VisibleForTesting
protected void verifyAndRebuild(
final BlockHashAndStateRoot blockHashAndStateRoot,
Expand Down

0 comments on commit 11194a8

Please sign in to comment.