reth_transaction_pool::maintain

Function backup_local_transactions_task

Source
pub async fn backup_local_transactions_task<P>(
    shutdown: GracefulShutdown,
    pool: P,
    config: LocalTransactionBackupConfig,
)
Expand description

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.