Skip to content

Commit

Permalink
specify pruning options are minimums (#87)
Browse files Browse the repository at this point in the history
Marking can take longer than the time it takes to accumulate the blocks to satisfy these options. We make no guarantees that exactly the number of blocks in the options will be awaited/kept.

Signed-off-by: Ratan Rai Sur <ratan.r.sur@gmail.com>
  • Loading branch information
RatanRSur authored Oct 3, 2019
1 parent c6ad0f7 commit 5d10f95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions besu/src/main/java/org/hyperledger/besu/cli/BesuCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -591,15 +591,15 @@ void setBannedNodeIds(final List<String> values) {
names = {"--pruning-blocks-retained"},
hidden = true,
description =
"Number of recent blocks for which to keep entire world state (default: ${DEFAULT-VALUE})",
"Minimum number of recent blocks for which to keep entire world state (default: ${DEFAULT-VALUE})",
arity = "1")
private final Long pruningBlocksRetained = DEFAULT_PRUNING_BLOCKS_RETAINED;

@Option(
names = {"--pruning-block-confirmations"},
hidden = true,
description =
"Number of confirmations on a block before marking begins (default: ${DEFAULT-VALUE})",
"Minimum number of confirmations on a block before marking begins (default: ${DEFAULT-VALUE})",
arity = "1")
private final Long pruningBlockConfirmations = DEFAULT_PRUNING_BLOCK_CONFIRMATIONS;

Expand Down

0 comments on commit 5d10f95

Please sign in to comment.