Skip to content

Commit

Permalink
simulate_bundle rpc bugfixes (#214) (#215)
Browse files Browse the repository at this point in the history
rm frozen bank check in simulate_bundle rpc method
  • Loading branch information
segfaultdoc authored and buffalu committed Dec 13, 2022
1 parent d2a88fe commit f0af798
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion client/src/rpc_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ pub struct RpcSimulateBundleConfig {
pub transaction_encoding: Option<UiTransactionEncoding>,

/// Specifies the bank to run simulation against.
#[serde(flatten)]
pub simulation_bank: Option<SimulationSlotConfig>,

/// Opt to skip sig-verify for faster performance.
Expand Down
8 changes: 0 additions & 8 deletions rpc/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f0af798

Please sign in to comment.