pub(in crate::eth_sender) fn restored_eth_sender(
    restore_state: impl IntoIterator<Item = ETHOperation>,
    stats: ETHStats,
) -> (
    ETHSender<MockEthereum, MockDatabase>,
    mpsc::Sender<ETHSenderRequest>,
    mpsc::Receiver<Operation>,
) {
    const MAX_TXS_IN_FLIGHT: u64 = 1;

    build_eth_sender(MAX_TXS_IN_FLIGHT, restore_state, stats)
}
/// Creates an `ETHSender` with mock Ethereum connection/database and restores its state "from DB".
/// Returns the `ETHSender` itself along with communication channels to interact with it.
Creates an `ETHSender` with mock Ethereum connection/database and restores its state "from DB".
Returns the `ETHSender` itself along with communication channels to interact with it.
Creates an ` ETHSender ` with mock Ethereum connection / database and restores its state " from DB " . Returns the ` ETHSender ` itself along with communication channels to interact with it .
pub(in crate::eth_sender) fn restored_eth_sender(
    restore_state: impl IntoIterator<Item = ETHOperation>,
    stats: ETHStats,
) -> (
    ETHSender<MockEthereum, MockDatabase>,
    mpsc::Sender<ETHSenderRequest>,
    mpsc::Receiver<Operation>,
) {
    const MAX_TXS_IN_FLIGHT: u64 = 1;
    build_eth_sender(MAX_TXS_IN_FLIGHT, restore_state, stats)
}
pub ( in crate :: eth_sender ) fn restored_eth_sender ( restore_state : impl IntoIterator < Item = ETHOperation > , stats : ETHStats , ) -> ( ETHSender < MockEthereum , MockDatabase > , mpsc :: Sender < ETHSenderRequest > , mpsc :: Receiver < Operation > , ) { const MAX_TXS_IN_FLIGHT : u64 = 1 ; build_eth_sender ( MAX_TXS_IN_FLIGHT , restore_state , stats ) }
Creates an `ETHSender` with mock Ethereum connection/database and restores its state "from DB".
Creates an ` ETHSender ` with mock Ethereum connection / database and restores its state " from DB " .
restore_state
impl IntoIterator<Item = ETHOperation>
stats
ETHStats