You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let bundle = VersionedBundle{transactions:vec![tx.clone()],};let sim = rpc_client.simulate_bundle(&bundle).await.unwrap();
returns the following error:
ClientError { request: Some(SimulateBundle), kind: RpcError(RpcResponseError { request_id: 1, code: -32602, message: "pre/post_execution_accounts_configs must be equal in length to the number of transactions", data: Empty }) }',
This is because simulate_bundle with no config fills out the default config as:
if !(config.pre_execution_accounts_configs.len()
== rpc_bundle_request.encoded_transactions.len()
&& config.post_execution_accounts_configs.len()
== rpc_bundle_request.encoded_transactions.len()){returnErr(Error::invalid_params("pre/post_execution_accounts_configs must be equal in length to the number of transactions",));}
Proposed Solution
in simulate_bundle, we can have it fill out pre_execution_accounts_configs and post_execution_accounts_configs with vec![None; bundle.transactions.len()] or handle that better in setting the defaults when the simulate_bundle RPC call is made in the validator
The text was updated successfully, but these errors were encountered:
…rts (backport of #266) (#369)
Cli stake-split: adjust transfer amount if recipient has lamports (#266)
* Remove incorrect check
* Move to closure
* Use match statement instead
* Adjust rent_exempt_reserve by existing balance
* Only transfer lamports if rent_exempt_reserve needs are greater than 0
* Rename variable for clarity
* Add minimum-delegation check
* Bump test split amount to meet arbitrary mock minimum-delegation amount
(cherry picked from commit dff99d0)
# Conflicts:
# cli/src/stake.rs
Co-authored-by: Tyera <[email protected]>
* Remove incorrect check
* Move to closure
* Use match statement instead
* Adjust rent_exempt_reserve by existing balance
* Only transfer lamports if rent_exempt_reserve needs are greater than 0
* Rename variable for clarity
* Add minimum-delegation check
* Bump test split amount to meet arbitrary mock minimum-delegation amount
Problem
returns the following error:
This is because simulate_bundle with no config fills out the default config as:
and the validator runs the following check:
Proposed Solution
in simulate_bundle, we can have it fill out pre_execution_accounts_configs and post_execution_accounts_configs with vec![None; bundle.transactions.len()] or handle that better in setting the defaults when the simulate_bundle RPC call is made in the validator
The text was updated successfully, but these errors were encountered: