From 8bdcce535b0043964add563bfd15a655533944b7 Mon Sep 17 00:00:00 2001 From: Roman Krasiuk Date: Fri, 1 Dec 2023 03:06:52 -0800 Subject: [PATCH] chore(txpool): query header on txpool maintenance bootup (#5648) --- crates/transaction-pool/src/maintain.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/transaction-pool/src/maintain.rs b/crates/transaction-pool/src/maintain.rs index a4c924bef1..db74f50f2f 100644 --- a/crates/transaction-pool/src/maintain.rs +++ b/crates/transaction-pool/src/maintain.rs @@ -85,7 +85,7 @@ pub async fn maintain_transaction_pool( let metrics = MaintainPoolMetrics::default(); let MaintainPoolConfig { max_update_depth, max_reload_accounts } = config; // ensure the pool points to latest state - if let Ok(Some(latest)) = client.block_by_number_or_tag(BlockNumberOrTag::Latest) { + if let Ok(Some(latest)) = client.header_by_number_or_tag(BlockNumberOrTag::Latest) { let latest = latest.seal_slow(); let chain_spec = client.chain_spec(); let info = BlockInfo {