struct MempoolTransaction {
transaction: Transaction,
time: Instant,
depends: Vec<u64>,
children: Vec<u64>,
}Expand description
A transaction in the mempool.
This struct holds the transaction itself, the time when we added it to the mempool, the transactions that depend on it, and the transactions that it depends on. We need that extra information to make decisions when to include or not a transaction in mempool or in a block.
Fields§
§transaction: Transaction§time: Instant§depends: Vec<u64>§children: Vec<u64>Trait Implementations§
Auto Trait Implementations§
impl Freeze for MempoolTransaction
impl RefUnwindSafe for MempoolTransaction
impl Send for MempoolTransaction
impl Sync for MempoolTransaction
impl Unpin for MempoolTransaction
impl UnwindSafe for MempoolTransaction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more