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 {