diff --git a/ethereum/eth/src/main/java/tech/pegasys/pantheon/ethereum/eth/manager/EthPeer.java b/ethereum/eth/src/main/java/tech/pegasys/pantheon/ethereum/eth/manager/EthPeer.java index 4e92d7e912..756972b00d 100644 --- a/ethereum/eth/src/main/java/tech/pegasys/pantheon/ethereum/eth/manager/EthPeer.java +++ b/ethereum/eth/src/main/java/tech/pegasys/pantheon/ethereum/eth/manager/EthPeer.java @@ -48,7 +48,7 @@ public class EthPeer { private static final Logger LOG = LogManager.getLogger(); private final PeerConnection connection; - private final int maxTrackedSeenBlocks = 30_000; + private final int maxTrackedSeenBlocks = 300; private final Set knownBlocks; private final String protocolName; diff --git a/ethereum/eth/src/main/java/tech/pegasys/pantheon/ethereum/eth/transactions/PeerTransactionTracker.java b/ethereum/eth/src/main/java/tech/pegasys/pantheon/ethereum/eth/transactions/PeerTransactionTracker.java index 01518c3cda..92f010619f 100644 --- a/ethereum/eth/src/main/java/tech/pegasys/pantheon/ethereum/eth/transactions/PeerTransactionTracker.java +++ b/ethereum/eth/src/main/java/tech/pegasys/pantheon/ethereum/eth/transactions/PeerTransactionTracker.java @@ -27,7 +27,7 @@ import java.util.concurrent.ConcurrentHashMap; class PeerTransactionTracker implements DisconnectCallback { - private static final int MAX_TRACKED_SEEN_TRANSACTIONS = 30_000; + private static final int MAX_TRACKED_SEEN_TRANSACTIONS = 10_000; private final Map> seenTransactions = new ConcurrentHashMap<>(); private final Map> transactionsToSend = new ConcurrentHashMap<>();