Skip to content

Commit

Permalink
tmp: temporary disable runtime api version increment
Browse files Browse the repository at this point in the history
  • Loading branch information
librelois committed Nov 27, 2023
1 parent 3388642 commit bba7443
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions client/rpc/src/eth/pending.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ where
);

// Initialize the pending block header
match api.api_version::<dyn EthereumRuntimeRPCApi<B>>(best_hash)? {
Some(version) if version >= 6 => {
api.initialize_pending_block(best_hash, &pending_header)?
}
_ => api.initialize_block(best_hash, &pending_header)?,
}
//match api.api_version::<dyn EthereumRuntimeRPCApi<B>>(best_hash)? {
//Some(version) if version >= 6 => {
api.initialize_pending_block(best_hash, &pending_header)?;
//}
//_ => api.initialize_block(best_hash, &pending_header)?,
//}

// Apply inherents to the pending block.
let inherents = api.execute_in_transaction(move |api| {
Expand Down
2 changes: 1 addition & 1 deletion primitives/rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl<B: BlockT, C> RuntimeStorageOverride<B, C> for () {

sp_api::decl_runtime_apis! {
/// API necessary for Ethereum-compatibility layer.
#[api_version(6)]
#[api_version(5)]
pub trait EthereumRuntimeRPCApi {
/// Returns runtime defined pallet_evm::ChainId.
fn chain_id() -> u64;
Expand Down

0 comments on commit bba7443

Please sign in to comment.