diff --git a/client/rpc/src/eth/pending.rs b/client/rpc/src/eth/pending.rs index f750dc51e4..8730956330 100644 --- a/client/rpc/src/eth/pending.rs +++ b/client/rpc/src/eth/pending.rs @@ -101,11 +101,11 @@ where ); // Initialize the pending block header - match api.api_version::>(best_hash)? { - Some(version) if version >= 6 => { - api.initialize_pending_block(best_hash, &pending_header)?; - } - _ => api.initialize_block(best_hash, &pending_header)?, + if api + .initialize_pending_block(best_hash, &pending_header) + .is_err() + { + api.initialize_block(best_hash, &pending_header)? } // Apply inherents to the pending block.