laconicd-deprecated/rpc/backend
yihuang 77ed4aa754
feat!: Store eth tx index separately (#1121)
* Store eth tx index separately

Closes: #1075
Solution:
- run a optional indexer service
- adapt the json-rpc to the more efficient query

changelog

changelog

fix lint

fix backward compatibility

fix lint

timeout

better strconv

fix linter

fix package name

add cli command to index old tx

fix for loop

indexer cmd don't have access to local rpc

workaround exceed block gas limit situation

add unit tests for indexer

refactor

polish the indexer module

Update server/config/toml.go

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

improve comments

share code between GetTxByEthHash and GetTxByIndex

fix unit test

Update server/indexer.go

Co-authored-by: Freddy Caceres <facs95@gmail.com>

* Apply suggestions from code review

* test enable-indexer in integration test

* fix go lint

* address review suggestions

* fix linter

* address review suggestions

- test indexer in backend unit test
- add comments

* fix build

* fix test

* service name

Co-authored-by: Freddy Caceres <facs95@gmail.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2022-08-11 22:49:05 +02:00
..
mocks ENG 119 json rpc unit tests (#1189) 2022-07-29 10:35:07 +00:00
account_info.go chore(rpc): restructure JSON-RPC APIs (#1218) 2022-08-09 07:52:28 +02:00
backend_suite_test.go feat!: Store eth tx index separately (#1121) 2022-08-11 22:49:05 +02:00
backend.go feat!: Store eth tx index separately (#1121) 2022-08-11 22:49:05 +02:00
blocks_info.go feat!: Store eth tx index separately (#1121) 2022-08-11 22:49:05 +02:00
call_tx.go chore(rpc): restructure JSON-RPC APIs (#1218) 2022-08-09 07:52:28 +02:00
chain_info.go chore(rpc): restructure JSON-RPC APIs (#1218) 2022-08-09 07:52:28 +02:00
client_test.go ENG 119 json rpc unit tests (#1189) 2022-07-29 10:35:07 +00:00
evm_backend_test.go feat!: Store eth tx index separately (#1121) 2022-08-11 22:49:05 +02:00
filters.go chore(rpc): restructure JSON-RPC APIs (#1218) 2022-08-09 07:52:28 +02:00
node_info.go chore(rpc): restructure JSON-RPC APIs (#1218) 2022-08-09 07:52:28 +02:00
query_client_test.go ENG 119 json rpc unit tests (#1189) 2022-07-29 10:35:07 +00:00
sign_tx.go chore(rpc): restructure JSON-RPC APIs (#1218) 2022-08-09 07:52:28 +02:00
tracing.go feat!: Store eth tx index separately (#1121) 2022-08-11 22:49:05 +02:00
tx_info.go feat!: Store eth tx index separately (#1121) 2022-08-11 22:49:05 +02:00
utils.go feat!: Store eth tx index separately (#1121) 2022-08-11 22:49:05 +02:00