Module maintain

Expand description

Support for maintaining the state of the transaction pool

Structs§

LocalTransactionBackupConfig
Settings for local transaction backup task
MaintainPoolConfig
Additional settings for maintaining the transaction pool

Enums§

TransactionsBackupError
Errors possible during txs backup load and decode

Constants§

MAX_QUEUED_TRANSACTION_LIFETIME
Maximum amount of time non-executable transaction are queued.

Functions§

backup_local_transactions_task
Task which manages saving local transactions to the persistent file in case of shutdown. Reloads the transactions from the file on the boot up and inserts them into the pool.
maintain_transaction_pool
Maintains the state of the transaction pool by handling new blocks and reorgs.
maintain_transaction_pool_future
Returns a spawnable future for maintaining the state of the transaction pool.