jito-solana
jito-solana copied to clipboard
simulate_bundle rpc method does not return full result on transaction error
Problem
When calling the simulate_bundle RPC method and one of transactions fails due to e.g. custom thrown error from an instruction, the result does not contain neither logs nor consumed compute units, and the error itself is returned only as string which makes it cumbersome to parse.
example result:
Response { context: RpcResponseContext { slot: 290184069, api_version: Some(RpcApiVersion(Version { major: 2, minor: 0, patch: 5 })) }, value: RpcSimulateBundleResult { summary: Failed { error: TransactionFailure(<REDACTED>, "Error processing Instruction 3: custom program error: 0x1772"), tx_signature: Some("<REDACTED>") }, transaction_results: [] } }
As you can see, only summary field is returned; the transaction_results is empty.
Proposed Solution
transaction_results should be returned; It has all the fields that standard solana simulate_transaction rpc method returns: logs, consumed compute units etc. This helps to debug failures.
@segfaultdoc, pretty please, we really need it!
+1 would be super helpful to have this
+1 on this as well, really need it
+1 fully agree, having full logs on success transactions is not as useful as failed ones, that's where we really need those damn logs.