lotus/node/impl
Phi-rjan 9dc29bf3f7
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-02-27 07:50:07 -08:00
..
client Merge branch 'release/v1.24.0' into release/v1.25.0 2023-10-17 10:19:51 -05:00
common feat: Add node uptime rpc / output in info command 2022-10-11 10:11:09 +02:00
full chore:: backport #11609 to the feat/nv22 branch (#11644) 2024-02-27 07:50:07 -08:00
market chore: fix imports 2022-06-14 17:00:51 +02:00
net stop using go-libp2p deprecated peer.ID.Pretty 2023-09-12 13:13:34 +08:00
paych chore: fix imports 2022-06-14 17:00:51 +02:00
backup.go Plumb contexts through 2021-12-11 17:04:00 -05:00
full.go Refactor eth.go 2023-08-28 17:48:22 +00:00
remoteworker.go storage: Move extern/sector-storage to storage/sealer 2022-06-14 20:03:38 +02:00
storminer.go feat: sealing: Support nv22 DDO features in the sealing pipeline (#11226) 2024-01-25 15:15:55 +01:00