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

Reduce the default transaction pool size from 30,000 to 4096 #1136

Merged
merged 2 commits into from
Mar 20, 2019
Merged
Changes from 1 commit
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 @@ -40,7 +40,7 @@
* <p>This class is safe for use across multiple threads.
*/
public class PendingTransactions {
public static final int MAX_PENDING_TRANSACTIONS = 30_000;
public static final int MAX_PENDING_TRANSACTIONS = 4096;

private final Map<Hash, TransactionInfo> pendingTransactions = new HashMap<>();
private final SortedSet<TransactionInfo> prioritizedTransactions =
Expand Down