|
|
|
@ -40,6 +40,7 @@ import tech.pegasys.pantheon.controller.KeyPairUtil; |
|
|
|
|
import tech.pegasys.pantheon.controller.PantheonController; |
|
|
|
|
import tech.pegasys.pantheon.ethereum.core.Address; |
|
|
|
|
import tech.pegasys.pantheon.ethereum.core.MiningParameters; |
|
|
|
|
import tech.pegasys.pantheon.ethereum.core.PendingTransactions; |
|
|
|
|
import tech.pegasys.pantheon.ethereum.core.PrivacyParameters; |
|
|
|
|
import tech.pegasys.pantheon.ethereum.core.Wei; |
|
|
|
|
import tech.pegasys.pantheon.ethereum.eth.sync.SyncMode; |
|
|
|
@ -458,6 +459,14 @@ public class PantheonCommand implements DefaultCommandValues, Runnable { |
|
|
|
|
"The address to which the privacy pre-compiled contract will be mapped to (default: ${DEFAULT-VALUE})") |
|
|
|
|
private final Integer privacyPrecompiledAddress = Address.PRIVACY; |
|
|
|
|
|
|
|
|
|
@Option( |
|
|
|
|
names = {"--tx-pool-max-size"}, |
|
|
|
|
paramLabel = MANDATORY_INTEGER_FORMAT_HELP, |
|
|
|
|
description = |
|
|
|
|
"Maximum number of pending transactions that will be kept in the transaction pool (default: ${DEFAULT-VALUE})", |
|
|
|
|
arity = "1") |
|
|
|
|
private final Integer txPoolMaxSize = PendingTransactions.MAX_PENDING_TRANSACTIONS; |
|
|
|
|
|
|
|
|
|
// Inner class so we can get to loggingLevel.
|
|
|
|
|
public class PantheonExceptionHandler |
|
|
|
|
extends CommandLine.AbstractHandler<List<Object>, PantheonExceptionHandler> |
|
|
|
@ -643,6 +652,7 @@ public class PantheonCommand implements DefaultCommandValues, Runnable { |
|
|
|
|
.miningParameters( |
|
|
|
|
new MiningParameters(coinbase, minTransactionGasPrice, extraData, isMiningEnabled)) |
|
|
|
|
.devMode(NetworkName.DEV.equals(getNetwork())) |
|
|
|
|
.maxPendingTransactions(txPoolMaxSize) |
|
|
|
|
.nodePrivateKeyFile(nodePrivateKeyFile()) |
|
|
|
|
.metricsSystem(metricsSystem.get()) |
|
|
|
|
.privacyParameters(privacyParameters()) |
|
|
|
|