laconicd/x/evm/keeper
yihuang 2a205e561a
rpc: debug_traceTransaction fails for succesful tx (#720)
* Problem: traceTransaction fails for succesful tx

Solution:
- Change the context to the begining of the block, rather than the end
  of it, while override block context to correct one

pass predecessors

pass current block information to grpc query

* changelog

* fix build

* fix lint

* refactor traceBlock

* update protobuf

* fix Predecessors

* traceBlock refactor

* refactor traceBlock response

* Update proto/ethermint/evm/v1/tx.proto

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Update proto/ethermint/evm/v1/query.proto

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Update proto/ethermint/evm/v1/query.proto

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Update proto/ethermint/evm/v1/query.proto

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Update proto/ethermint/evm/v1/query.proto

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Update proto/ethermint/evm/v1/query.proto

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* check tx index is not out of bound

* fix build

* Update rpc/ethereum/namespaces/debug/api.go

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Update rpc/ethereum/namespaces/debug/api.go

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Update rpc/ethereum/namespaces/debug/api.go

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Update rpc/ethereum/namespaces/debug/api.go

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* remove prealloc

* add traceBlock test

* Update x/evm/keeper/grpc_query.go

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* use bytes2Hex

* fix error message

* add comment

* Apply suggestions from code review

Co-authored-by: Freddy Caceres <freddy.caceres@crypto.com>
Co-authored-by: crypto-facs <84574577+crypto-facs@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2021-11-09 18:38:22 +00:00
..
abci.go evm: remove tx logs and block bloom from chain state (#556) 2021-09-15 09:45:03 +00:00
benchmark_test.go tests: add message call benchmark (#717) 2021-11-08 13:04:49 +00:00
context_stack.go evm: fix panic when transaction is reverted (#650) 2021-10-08 11:29:40 +00:00
grpc_query_test.go rpc: debug_traceTransaction fails for succesful tx (#720) 2021-11-09 18:38:22 +00:00
grpc_query.go rpc: debug_traceTransaction fails for succesful tx (#720) 2021-11-09 18:38:22 +00:00
hooks_test.go evm: remove tx logs and block bloom from chain state (#556) 2021-09-15 09:45:03 +00:00
hooks.go all: linter (#532) 2021-09-05 11:03:06 +00:00
keeper_test.go tests: add message call benchmark (#717) 2021-11-08 13:04:49 +00:00
keeper.go evm: refactor dup state transition code (#674) 2021-10-22 19:21:03 +02:00
msg_server.go evm, rpc: fix tx log attribute value is not parsable by some client (#615) 2021-10-05 10:26:31 +00:00
params_test.go chore: un-fork from cosmos (#166) 2021-06-22 06:49:18 -04:00
params.go evm: move ChainConfig to Params (#266) 2021-07-14 05:13:55 -04:00
state_transition_benchmark_test.go evm: refactor dup state transition code (#674) 2021-10-22 19:21:03 +02:00
state_transition_test.go evm: refactor dup state transition code (#674) 2021-10-22 19:21:03 +02:00
state_transition.go evm: refactor dup state transition code (#674) 2021-10-22 19:21:03 +02:00
statedb_benchmark_test.go evm: benchmark evm keeper (#586) 2021-09-24 12:58:22 -03:00
statedb_test.go tests: DynamicFeeTx (#649) 2021-10-19 08:49:29 +00:00
statedb.go evm: fix import/export genesis for contract storage (#590) 2021-09-27 12:26:45 +02:00
utils_test.go tests: DynamicFeeTx (#649) 2021-10-19 08:49:29 +00:00
utils.go tests: DynamicFeeTx (#649) 2021-10-19 08:49:29 +00:00