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:
back
2024-02-16 14:25:55 -08:00
committed by GitHub
parent 468cbae89c
commit 208eb6d6a1
20 changed files with 265 additions and 47 deletions

View File

@ -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);