Expand description
Mines transactions
Re-exportsΒ§
use crate::eth::pool::Pool;πuse crate::eth::pool::transactions::PoolTransaction;πuse alloy_primitives::TxHash;πuse futures::channel::mpsc::Receiver;πuse futures::stream::Fuse;πuse futures::stream::StreamExt;πuse futures::task::AtomicWaker;πuse parking_lot::RawRwLock;πuse parking_lot::RwLock;πuse parking_lot::lock_api::RwLockWriteGuard;πuse std::fmt;πuse std::marker::PhantomData;πuse std::pin::Pin;πuse std::sync::Arc;πuse std::sync::atomic::AtomicU64;πuse std::sync::atomic::Ordering;πuse std::task::Context;πuse std::task::Poll;πuse std::time::Duration;πuse tokio::time::Instant;πuse tokio::time::Sleep;π
StructsΒ§
- Fixed
Block Time Miner - A miner thatβs supposed to create a new block every
interval, mining all transactions that are ready at that time. - Miner
- Miner
Inner - A Mining mode that does nothing
- Mining
Work π - Transactions selected by a specific mining mode generation.
- Ready
Transaction Miner - A miner that Listens for new ready transactions
EnumsΒ§
- Mining
Mode - Mode of operations for the
Miner
ConstantsΒ§
- FAR_
FUTURE π - How far ahead to schedule a block whose deadline overflows an instant, as tokioβs timers do.
- INSTANT_
COALESCE_ πWINDOW - Default delay before instant mining. Zero avoids delaying receipt availability.
FunctionsΒ§
- next_
deadline π - Returns the deadline of the tick after the one due at
deadline, which fired atnow. - resumed_
deadline π - Returns the first deadline after
nowon the schedule ofdeadline, orNoneif the tick due atdeadlinehas not come due.