mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
Make transaction manager param configurable from cli (#6594)
Co-authored-by: Emilia Hane <elsaemiliaevahane@gmail.com> Co-authored-by: Bjerg <onbjerg@users.noreply.github.com> Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -35,10 +35,12 @@ async fn main() -> eyre::Result<()> {
|
||||
|
||||
// Configure the network
|
||||
let config = NetworkConfig::builder(local_key).mainnet_boot_nodes().build(client);
|
||||
|
||||
let transactions_manager_config = config.transactions_manager_config.clone();
|
||||
// create the network instance
|
||||
let (_handle, network, txpool, _) =
|
||||
NetworkManager::builder(config).await?.transactions(pool.clone()).split_with_handle();
|
||||
let (_handle, network, txpool, _) = NetworkManager::builder(config)
|
||||
.await?
|
||||
.transactions(pool.clone(), transactions_manager_config)
|
||||
.split_with_handle();
|
||||
|
||||
// spawn the network task
|
||||
tokio::task::spawn(network);
|
||||
|
||||
Reference in New Issue
Block a user