Module maintain
Expand description
Support for maintaining the state of the transaction pool
Structs§
- Local
Transaction Backup Config - Settings for local transaction backup task
- Maintain
Pool Config - Additional settings for maintaining the transaction pool
Enums§
- Transactions
Backup Error - 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.