Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

[PAN-1062] Specify pending transaction retention period (2 of 2) #1333

Merged
merged 26 commits into from
Apr 30, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
x
  • Loading branch information
smatthewenglish committed Apr 30, 2019
commit 559fea55f31d8f1481254f76529f4755e373368b
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public interface DefaultCommandValues {
String PANTHEON_HOME_PROPERTY_NAME = "pantheon.home";
String DEFAULT_DATA_DIR_PATH = "./build/data";
String MANDATORY_INTEGER_FORMAT_HELP = "<INTEGER>";
String PENDING_TX_RETENTION_PERIOD_FORMAT_HELP = "<INTEGER>h<INTEGER>m<INTEGER>s";
String DURATION_HELP = "<INTEGER>h<INTEGER>m<INTEGER>s";
String MANDATORY_MODE_FORMAT_HELP = "<MODE>";
String MANDATORY_NETWORK_FORMAT_HELP = "<NETWORK>";
String MANDATORY_NODE_ID_FORMAT_HELP = "<NODEID>";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,9 @@ void setBootnodes(final List<String> values) {

@Option(
names = {"--tx-pool-retention-period"},
paramLabel = PENDING_TX_RETENTION_PERIOD_FORMAT_HELP,
paramLabel = DURATION_HELP,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
paramLabel = DURATION_HELP,
paramLabel = MANDATORY_INTEGER_FORMAT_HELP,

description =
"Maximum retention period of pending transactions in the transaction pool (default: ${DEFAULT-VALUE})",
"Maximum retention period of pending transactions, expressed in hours. Represented by primitive type 'long'. (default: ${DEFAULT-VALUE})",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: drop the redundant word 'expressed' and user's don't care how we represent the value internally.

Suggested change
"Maximum retention period of pending transactions, expressed in hours. Represented by primitive type 'long'. (default: ${DEFAULT-VALUE})",
"Maximum retention period of pending transactions in hours (default: ${DEFAULT-VALUE})",

arity = "1")
private final Integer pendingTxRetentionPeriod = PendingTransactions.PENDING_TX_RETENTION_HOURS;

Expand Down