lotus/chain/actors
Steven Allen 8ba491b6b4
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.
2024-02-21 12:20:00 -08:00
..
adt fix make gen 2022-08-29 16:25:30 +02:00
aerrors fix make gen 2022-08-29 16:25:30 +02:00
agen refactor: stop using deprecated io/ioutil 2023-03-29 15:38:46 -04:00
builtin feat: api: improve the correctness of Eth's trace_block (#11609) 2024-02-21 12:20:00 -08:00
policy Merge branch 'master' into feat/sturdypost 2023-11-06 16:10:57 -06:00
actor_cids.go Drop actor keys from chain/actors/manifest.go 2022-12-13 18:02:34 -05:00
manifest.go feat: chain: light-weight patch to fix calibrationnet (#11363) 2023-10-31 18:29:09 -04:00
params.go Fix/texts (#11298) 2023-10-27 11:32:42 -07:00
version.go master-to-sturdy 2023-09-21 10:37:02 -05:00