43c6178999
Re-order uncles if calculated uncle hash doesn't match
2022-08-25 13:34:17 +05:30
prathamesh0
e40e8a7335
Optimize eth_getBlockByNumber
and eth_getBlockByHash
implementations ( #187 )
...
* Avoid two step queries for creating a block object
* Use a db tx while fetching block objects
* Upgrade ipfs-ethdb
2022-08-23 12:42:19 +05:30
prathamesh0
6cb54ca790
Update transactions, receipts and logs queries ( #173 )
...
* 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
2022-07-12 13:40:45 +05:30
07a991d3e4
Add misssing error logs
2022-06-28 16:40:07 +05:30
Abdul Rabbani
4121863a4c
Update Geth and CICD
2022-06-17 10:45:54 -04:00
ace12fbc35
Update module path for v4
2022-05-20 18:50:50 +05:30
36e590c092
Delete from all tables when tearing down db for tests
2022-05-18 20:23:40 +05:30
384d939dc2
Upgrade dependencies
2022-05-18 14:53:09 +05:30
24a45a3f00
Update unit tests and queries to fetch data from cids tables
2022-05-18 14:38:09 +05:30
705835512e
Update module path for v3
2022-05-18 13:35:16 +05:30
233fa29740
Upgrade eth-ipfs-state-validator to v3
2022-05-04 13:06:07 +05:30
4883590d85
Upgrade ipfs-ethdb to v3
2022-05-04 13:06:07 +05:30
3aa5cb36ef
Fixes for unit tests
2022-04-19 14:01:24 +05:30
8df8b50cb1
Update to use new schema
2022-04-19 14:01:24 +05:30
072ba1edcc
Use sqlx for db connection
2022-04-19 14:01:24 +05:30
i-norden
907c7132f4
needed type assertion
2021-12-29 14:57:21 -06:00
Arijit Das
1973e8032d
Bump up daptools image tag and geth version.
2021-10-07 15:07:23 +05:30
Arijit Das
cc6822f7a6
Update eth_call code.
2021-09-29 10:57:11 +05:30
Arijit Das
5772d52eb1
Change receipt CID and MHKey to point trie leaf cid and mkhey.
2021-09-21 17:51:38 +05:30
Ashwin Phatak
2de9c5bd48
Use groupcache pool for state db access ( #91 )
...
* 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>
2021-09-21 17:40:55 +05:30
Arijit Das
ed4171a1ab
Revert "Add status field for pre-byzantium blocks."
...
This reverts commit 04a0f9a751
.
2021-09-15 17:14:25 +05:30
Arijit Das
04a0f9a751
Add status field for pre-byzantium blocks.
2021-09-14 17:25:48 +05:30
Arijit Das
71837c4b24
Self review.
2021-08-31 18:10:41 +05:30
Arijit Das
a28892f1d3
Fix get log API to use log_cids table.
2021-08-30 21:25:39 +05:30
Arijit Das
d8a5358a70
Remove ipld-eth-indexer dependency.
2021-08-12 11:56:29 +05:30
Arijit Das
e00e602098
Merge pull request #83 from vulcanize/marshall-binary
...
Update RPC api and backend to support the EIP-2930 and EIP-1559.
2021-08-05 11:04:57 +05:30
Arijit Das
924d0be0b9
Update RPC api and backend to support the EIP-2930 and EIP-1559.
2021-07-27 17:37:50 +05:30
Ashwin Phatak
70f7face75
getLogs API changes to return txHash, make contract arg optional. ( #81 )
...
* getLogs API changes to return txHash, make contract arg optional.
* Populate log index.
* Add test for txn hash in GetLogs request.
* Convert tx string to common.Hash after fetching.
Co-authored-by: Arijit Das <arijitad.in@gmail.com>
2021-07-26 15:43:38 +05:30
Arijit Das
9a5581b543
Fix failing unit tests.
2021-06-29 12:59:37 +05:30
Ashwin Phatak
a284a566d5
Get storage API, with storage leaf CID and raw IPLD block.
2021-06-28 12:51:35 +05:30
Ashwin Phatak
18266c4f9d
Get receipt CID and block data for logs.
2021-06-28 12:04:46 +05:30
Arijit Das
969da82f6e
Merge remote-tracking branch 'origin/master' into endpoints
2021-06-18 16:11:11 +05:30
Arijit Das
c4f7fa2821
Address comments.
2021-06-18 12:12:29 +05:30
Arijit Das
2c1bc557e5
Add test for GetStorageAt RPC.
2021-06-10 11:51:38 +05:30
Arijit Das
3b3716499f
Fix and add integration test.
2021-06-10 08:50:18 +05:30
Arijit Das
8c16dc2b35
Fix get logs unit test.
2021-06-09 09:12:46 +05:30
Arijit Das
7babaf6c05
Fix failing test
2021-06-04 00:01:25 +05:30
ramil
39141bd30d
fix quiering json-rpc methods eth_getStorageAt, eth_getBalance without block number
2021-04-21 18:00:01 +03:00
ramil
9b960a105f
fix CodeAt without block number
2021-04-21 14:16:47 +03:00
ramil
f8b9d9475e
add eth_chainId JSON-RPC endpoint
2021-04-20 00:52:58 +03:00
Ian Norden
d5cf74e202
minor refactor; fix error shadowing
2021-04-19 09:34:38 -05:00
ramil
53f06a66f5
integration test: fix returning error when block doesn't exist
2021-04-19 13:16:59 +03:00
ramil
75debec01a
remove proxy command
2021-04-16 16:02:04 +03:00
Ian Norden
9f81ffa8e0
minor clenaup/adjustments
2021-02-24 16:20:06 -06:00
Ian Norden
211ec12009
cache misses trigger call out to statediffing geth to fill in the gap in Postgres
2021-02-24 10:50:26 -06:00
Ramil Amerzyanov
e92d35b084
update geth statediff to version v1.9.25-statediff-0.0.14 ( #27 )
...
* 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
2021-02-19 23:23:45 +03:00
Ian Norden
c0a91b9d9f
updated canonical header finder functions
2020-11-09 10:29:04 -06:00
Ian Norden
b208281ad6
optimize GetStorageAt; GetStorageAt unit tests
2020-10-30 12:06:41 -05:00
Ian Norden
b664aee621
unit tests for GetTransactionCount, GetTransactionReceipt, GetBalance, and GetCode
2020-10-30 00:44:41 -05:00
Ian Norden
cffceb53db
optimize GetTransactionCount, GetBalance, and GetCode to use secondary indexes instead of operating through ethdb where we have to iterate down trie from root to leaf (multiple db lookups) to access account info
2020-10-29 22:07:39 -05:00