fuel-core-txpool 0.47.0

Transaction pool that manages transactions and their dependencies.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use fuel_core_types::{
    fuel_tx::TxId,
    fuel_types::BlockHeight,
};
use std::{
    collections::{
        BTreeMap,
        VecDeque,
    },
    time::SystemTime,
};

pub(super) struct TransactionPruner {
    pub time_txs_submitted: VecDeque<(SystemTime, TxId)>,
    pub height_expiration_txs: BTreeMap<BlockHeight, Vec<TxId>>,
    pub ttl_timer: tokio::time::Interval,
    pub txs_ttl: tokio::time::Duration,
}