Co-authored-by: Roy Crihfield <roy@manteia.ltd>
Reviewed-on: #3
Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com>
Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>
Now uses:
* ipld direct_by_leaf StateDB for basic queries
* trie_by_cid StateDB for trie slice and proof queries
Also:
* vulcanize => cerc refactor
* Backend method to close dbs
* state tests are in multiple packages, to allow separate ginkgo suites
* removes gap-filler module
* integration tests and github workflows
* run stack-orchestrator for testnet
* fix various issues with tests, hardhat server, dockerfile
* fix cmd flags / env vars
* fix flaky tests and clean up code
* remove unused code, scripts
* remove outdated docs
* update version
1. Improve logging to include API method, user ID, etc in the output. We do this by intercepting the request details in the "middleware" and adding them to the request context, as well as adding a wrapper to logrus that simplifies including the fields in the output.
2. Breakdown API metrics by method. This will allow us to differentiate call counts and durations by API method (eg, eth_call vs eth_getStorageAt).
* Update queries to fetch data from cids tables
* Fix eth_getTransactionByHash to return tx from canonical block
* Fetch transaction by hash in a single query
* Update queries to fetch data from IPLD blocks table
* Avoid NULL result from canonical block hash query
* Update GitHub workflow and script to run unit tests
* Avoid usage of LIMIT 1 in queries for GQL API
* Fetch IPLD data separately when retrieving latest account data or storage value
* Upgrade geth dependency
* Update GitHub workflow
* Use groupcache pool for state db access
* Group cache config and logging stats on timer
* Integrate state validator into server
* Use tagged ipfs-ethdb
* groupcache config for tests
* Work around duplicate registration of groupcache error in tests
* Use tagged version of eth-ipfs-state-validator
* State validation command.
* Validator for static replicas to keep cache warm
* Update docker go-version and go.mod.
* Address comments and self review.
* Fix ipfs-ethdb version.
Co-authored-by: Arijit Das <arijitad.in@gmail.com>
* update geth statediff to version v1.9.25-statediff-0.0.14
run integration tests in github actions
* fix goose install issue
* fix unit test bug.
Added sorting by tx index for transactions and receipts queries