Package com.privatechain.core.mempool
package com.privatechain.core.mempool
In-memory transaction pool with pluggable prioritization and TTL eviction.
The mempool sits between transaction submission and block mining. It validates
incoming transactions, prevents duplicates, and orders pending transactions for
mining using the configured TransactionPrioritizer.
Key class:
TransactionMempool— validates on submit, rejects duplicates, and schedules TTL eviction via a daemonScheduledExecutorService. Confirmed transactions are automatically removed when aBlockchainEvent.BlockAddedEventis received from the event bus (FR-MEMPOOL-01, FR-MEMPOOL-05).
- Since:
- 1.0.0
-
ClassesClassDescriptionOrders transactions by fee in descending order (highest fee = highest priority).Orders transactions by submission timestamp in ascending order (oldest first / FIFO).In-memory pool of submitted, unconfirmed transactions ordered by a pluggable
TransactionPrioritizer(FR-MEMPOOL-01 through FR-MEMPOOL-05).