From 11194a826d39ca9acf0e2ddf8e435441c35879d9 Mon Sep 17 00:00:00 2001 From: garyschulte Date: Wed, 22 Jan 2025 14:20:34 -0800 Subject: [PATCH] doc stuff Signed-off-by: garyschulte --- .../storage/RebuildBonsaiStateTrieSubCommand.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/besu/src/main/java/org/hyperledger/besu/cli/subcommands/storage/RebuildBonsaiStateTrieSubCommand.java b/besu/src/main/java/org/hyperledger/besu/cli/subcommands/storage/RebuildBonsaiStateTrieSubCommand.java index e8a6e51be8d..b15f9f871aa 100644 --- a/besu/src/main/java/org/hyperledger/besu/cli/subcommands/storage/RebuildBonsaiStateTrieSubCommand.java +++ b/besu/src/main/java/org/hyperledger/besu/cli/subcommands/storage/RebuildBonsaiStateTrieSubCommand.java @@ -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; @@ -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,