From f0af7980afc3b3609f3b99988034a661bd9e55b0 Mon Sep 17 00:00:00 2001 From: segfaultdoctor <17258903+segfaultdoc@users.noreply.github.com> Date: Wed, 7 Dec 2022 11:54:38 -0500 Subject: [PATCH] simulate_bundle rpc bugfixes (#214) (#215) rm frozen bank check in simulate_bundle rpc method --- client/src/rpc_config.rs | 1 - rpc/src/rpc.rs | 8 -------- 2 files changed, 9 deletions(-) diff --git a/client/src/rpc_config.rs b/client/src/rpc_config.rs index c6008d7adb..8877a789cb 100644 --- a/client/src/rpc_config.rs +++ b/client/src/rpc_config.rs @@ -85,7 +85,6 @@ pub struct RpcSimulateBundleConfig { pub transaction_encoding: Option, /// Specifies the bank to run simulation against. - #[serde(flatten)] pub simulation_bank: Option, /// Opt to skip sig-verify for faster performance. diff --git a/rpc/src/rpc.rs b/rpc/src/rpc.rs index ae25472b7f..1bde5de537 100644 --- a/rpc/src/rpc.rs +++ b/rpc/src/rpc.rs @@ -4005,14 +4005,6 @@ pub mod rpc_full { SimulationSlotConfig::Tip => Ok(meta.bank_forks.read().unwrap().working_bank()), }?; - // TODO: Come back to this and allow unfrozen bank as long as the parent is frozen. - if !bank.is_frozen() { - return Err(Error::invalid_params(format!( - "bank at slot {} is not frozen", - bank.slot() - ))); - } - let tx_encoding = config .transaction_encoding .unwrap_or(UiTransactionEncoding::Base64);