[go: up one dir, main page]

Title: RPC simulate_operation should accurately reflect operation simulation results

Summary

The current implementation of the simulate RPC endpoint in Tezos nodes returns mocked results, which do not accurately represent the actual execution outcome of operations. This discrepancy can lead to misleading information for developers and users relying on simulation results for decision-making.

The full implementation, was not required for the first demo and thus postponed.

Expected Behavior

The simulate RPC should execute the provided operation in a sandboxed environment, returning results that closely mirror what would happen if the operation were injected into the live network. This includes accurate gas consumption, storage changes, and potential errors.

Actual Behavior

Currently, the simulate RPC returns predefined or mocked responses that do not account for the actual state of the blockchain or the specifics of the operation. This can result in significant deviations between simulated outcomes and real-world execution.

Steps to Reproduce

  1. Craft a operation that relies on specific blockchain states.
  2. Use the simulate RPC to simulate the operation.
  3. Inject the same operation into the live network.
  4. Compare the results of the simulation with the actual execution outcome.
Edited by Brahima Dibassi