From 31aab7fa90b778b95a2804f72ef20db5a71edde4 Mon Sep 17 00:00:00 2001 From: Lucas Saldanha Date: Mon, 18 Mar 2019 13:31:17 +1300 Subject: [PATCH] [MINOR] Adding default pending transactions value in PantheonControllerBuilder --- .../tech/pegasys/pantheon/cli/PantheonControllerBuilder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pantheon/src/main/java/tech/pegasys/pantheon/cli/PantheonControllerBuilder.java b/pantheon/src/main/java/tech/pegasys/pantheon/cli/PantheonControllerBuilder.java index 02c7fe1122..8919c10a53 100644 --- a/pantheon/src/main/java/tech/pegasys/pantheon/cli/PantheonControllerBuilder.java +++ b/pantheon/src/main/java/tech/pegasys/pantheon/cli/PantheonControllerBuilder.java @@ -19,6 +19,7 @@ import tech.pegasys.pantheon.controller.PantheonController; import tech.pegasys.pantheon.crypto.SECP256K1.KeyPair; 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.eth.sync.SynchronizerConfiguration; import tech.pegasys.pantheon.ethereum.storage.StorageProvider; @@ -40,7 +41,7 @@ public class PantheonControllerBuilder { private File nodePrivateKeyFile; private MetricsSystem metricsSystem; private PrivacyParameters privacyParameters; - private Integer maxPendingTransactions; + private Integer maxPendingTransactions = PendingTransactions.MAX_PENDING_TRANSACTIONS; public PantheonControllerBuilder synchronizerConfiguration( final SynchronizerConfiguration synchronizerConfiguration) {