lotus/node
Phi-rjan 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
..
bundle fix circleci and fiximports 2023-11-15 13:06:51 +01:00
config feat: sealing: Support nv22 DDO features in the sealing pipeline (#11226) 2024-03-22 07:00:28 +01:00
hello AggregateProofType nil when doing batch updates 2024-03-22 07:00:28 +01:00
impl chore:: backport #11609 to the feat/nv22 branch (#11644) 2024-03-22 07:00:28 +01:00
modules feat: sealing: Support nv22 DDO features in the sealing pipeline (#11226) 2024-03-22 07:00:28 +01:00
repo fix circleci and fiximports 2023-11-15 13:06:51 +01:00
builder_chain.go lp: test cli, titled sql 2023-11-20 18:05:59 -06:00
builder_miner.go make db config in lotus-miner actually optional 2023-11-23 17:57:03 +01:00
builder.go fix circleci and fiximports 2023-11-15 13:06:51 +01:00
fxlog.go chore: fix imports 2022-06-14 17:00:51 +02:00
health.go fix circleci and fiximports 2023-11-15 13:06:51 +01:00
options.go fix circleci and fiximports 2023-11-15 13:06:51 +01:00
rpc.go fix circleci and fiximports 2023-11-15 13:06:51 +01:00
shutdown_test.go fix circleci and fiximports 2023-11-15 13:06:51 +01:00
shutdown.go Set notifications for SIGTERM and SIGINT when we start the cli 2022-12-15 12:54:41 -05:00
testopts.go fix circleci and fiximports 2023-11-15 13:06:51 +01:00