Skip to content

Commit bffe025

Browse files
feat: add parallel tx to startup summary (#8930)
* feat: add parallel tx to startup summary Signed-off-by: Dyslex7c <[email protected]> * fix spotless Signed-off-by: Gabriel-Trintinalia <[email protected]> --------- Signed-off-by: Dyslex7c <[email protected]> Signed-off-by: Gabriel-Trintinalia <[email protected]> Co-authored-by: Gabriel-Trintinalia <[email protected]>
1 parent 54abff0 commit bffe025

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

app/src/main/java/org/hyperledger/besu/cli/BesuCommand.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2494,6 +2494,11 @@ private String generateConfigurationOverview() {
24942494
.setSyncMode(syncMode.normalize())
24952495
.setSyncMinPeers(syncMinPeerCount);
24962496

2497+
builder.setParallelTxProcessingEnabled(
2498+
getDataStorageConfiguration()
2499+
.getPathBasedExtraStorageConfiguration()
2500+
.getParallelTxProcessingEnabled());
2501+
24972502
if (jsonRpcConfiguration != null && jsonRpcConfiguration.isEnabled()) {
24982503
builder
24992504
.setRpcPort(jsonRpcConfiguration.getPort())

app/src/main/java/org/hyperledger/besu/cli/ConfigurationOverviewBuilder.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public class ConfigurationOverviewBuilder {
6363
private Map<String, String> environment;
6464
private BesuPluginContextImpl besuPluginContext;
6565
private boolean isHistoryExpiryPruneEnabled = false;
66+
private boolean isParallelTxProcessingEnabled = false;
6667
private RocksDBCLIOptions.BlobDBSettings blobDBSettings;
6768

6869
/**
@@ -341,6 +342,18 @@ public ConfigurationOverviewBuilder setBlobDBSettings(
341342
return this;
342343
}
343344

345+
/**
346+
* Sets the parallel transaction processing enabled.
347+
*
348+
* @param isParallelTxProcessingEnabled parallel transaction processing enabled
349+
* @return the builder
350+
*/
351+
public ConfigurationOverviewBuilder setParallelTxProcessingEnabled(
352+
final boolean isParallelTxProcessingEnabled) {
353+
this.isParallelTxProcessingEnabled = isParallelTxProcessingEnabled;
354+
return this;
355+
}
356+
344357
/**
345358
* Build configuration overview.
346359
*
@@ -405,6 +418,12 @@ public String build() {
405418

406419
lines.add("Using " + worldStateUpdateMode + " worldstate update mode");
407420

421+
if (isParallelTxProcessingEnabled) {
422+
lines.add("Parallel transaction processing enabled");
423+
} else {
424+
lines.add("Parallel transaction processing disabled");
425+
}
426+
408427
if (isLimitTrieLogsEnabled) {
409428
final StringBuilder trieLogPruningString = new StringBuilder();
410429
trieLogPruningString

0 commit comments

Comments
 (0)