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

Reduce number of seen blocks and transactions Pantheon tracks #1112

Merged
merged 2 commits into from
Mar 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -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<Hash> knownBlocks;
private final String protocolName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<EthPeer, Set<Hash>> seenTransactions = new ConcurrentHashMap<>();
private final Map<EthPeer, Set<Transaction>> transactionsToSend = new ConcurrentHashMap<>();

Expand Down