Files
lotus/build
Phi-rjanandSteven Allen f60d4e1208 chore:: backport #11609 to the feat/nv22 branch (#11644)
* feat: api: improve the correctness of Eth's trace_block (#11609)

* Improve the correctness of Eth's trace_block

- Improve encoding/decoding of parameters and return values:
  - Encode "native" parameters and return values with Solidity ABI.
  - Correctly decode parameters to "create" calls.
  - Use the correct (ish) output for "create" calls.
  - Handle all forms of "create".
- Make robust with respect to reverts:
  - Use the actor ID/address from the trace instead of looking it up in
    the state-tree (may not exist in the state-tree due to a revert).
  - Gracefully handle failed actor/contract creation.
- Improve performance:
  - We avoid looking anything up in the state-tree when translating the
    trace, which should significantly improve performance.
- Improve code readability:
  - Remove all "backtracking" logic.
  - Use an "environment" struct to store temporary state instead of
    attaching it to the trace.
- Fix random bugs:
  - Fix an allocation bug in the "address" logic (need to set the
    capacity before modifying the slice).
  - Improved error checking/handling.
- Use correct types for `trace_block` action/results (create, call, etc.).
  - And use the correct types for Result/Action structs instead of reusing the same "Call" action every time.
- Improve error messages.

* Make gen

Make gen

---------

Co-authored-by: Steven Allen <steven@stebalien.com>
2024-03-22 07:00:28 +01:00
..
2024-03-22 07:00:28 +01:00
2023-12-01 23:21:07 +01:00
2022-08-25 14:20:41 -04:00
2020-08-03 12:20:04 -03:00
2024-03-22 07:00:28 +01:00
2021-06-02 12:16:09 +02:00
2021-08-26 16:09:18 +02:00
2022-08-29 16:25:30 +02:00
2022-05-27 17:03:56 +02:00
2021-09-28 11:30:35 -04:00
2024-03-22 07:00:28 +01:00
2024-03-22 07:00:28 +01:00