Commit Graph

13285 Commits

Author SHA1 Message Date
Ashwin Phatak
17d272d837
Merge pull request #226 from deep-stack/ng-public-WatchedAddressesLeafKeys
Export builder config param WatchedAddressesLeafKeys
2022-05-13 16:09:34 +05:30
4318911a5c Move over helper function for loading chain config 2022-05-12 19:27:14 +05:30
aa3fa24bef Implemented method to get private watchedAddressesLeafKeys 2022-05-12 15:49:58 +05:30
24058dc9df Export builder config param WatchedAddressesLeafKeys 2022-05-11 18:23:17 +05:30
Abdul Rabbani
8316859938 Remove related-repository 2022-04-22 08:45:10 -04:00
Abdul Rabbani
498101102c
Merge pull request #222 from vulcanize/v1.10.17-statediff-v3.2.0
Handle all breaking changes for the patch
2022-04-06 14:44:49 -04:00
Abdul Rabbani
e6ac85fefc Remove redundant deferences for pointers 2022-04-06 13:51:03 -04:00
Abdul Rabbani
3477d35af4 Handle all breaking changes for the patch
The major change to integrate the patch has been:

* Updating the arguments for `rlp.EncodeToBytes`. This function accepts interfaces, but since the last update, it is better to pass in a pointer to the function.
* From the Ethereum Release Notes: "
Compatibility note about `core/types`: For optimization purposes, `types.Header` and other types in this package now implement the `rlp.Encoder` interface. This change can cause incompatibilities because the new method is implemented with pointer receiver. Attempting to RLP-encode unadressable (i.e. non-pointer) values of type `Header` does not work anymore and will result in an error."
* Instead of just updating all the headers. I have updated all parameters for the `rlp.EncodeToBytes` to be pointers instead of values.

__Please take a close look at the updates__. The functions won't fail if a non-pointer is passed (in most cases), but we could be unexpected behaviors.
2022-04-06 10:57:57 -04:00
Abdul Rabbani
e5824ecbe9
Merge pull request #221 from vulcanize/v1.10.17-statediff-v3.2.0
Update a few go dependencies + GHA workflow
2022-04-05 15:50:45 -04:00
Abdul Rabbani
3ef54d3dde Update a few go dependencies + GHA workflow 2022-04-05 15:49:41 -04:00
Abdul Rabbani
a7caed41df Merge tag 'v1.10.17' into v1.10.17-statediff-v3 2022-04-05 15:30:47 -04:00
Ashwin Phatak
a9ab76cb33
Merge pull request #210 from deep-stack/pm-removed-storage-nodes
Add diffs for storage nodes of destroyed contracts
2022-04-05 14:21:19 +05:30
b351f8f335 Increase timeout in a failing test 2022-04-05 12:38:14 +05:30
c21aa96962 Index Removed diffs without leaf keys if an account or storage node is moved 2022-04-05 12:09:23 +05:30
9917e6c293 Fix linting errors 2022-04-05 12:09:23 +05:30
84365431d1 Update indexer unit tests 2022-04-05 12:09:23 +05:30
a14745dac5 Updated unit tests for changes in builder 2022-04-05 12:09:09 +05:30
4855d9304e Index Removed storage diffs on contract destruction 2022-04-05 11:03:54 +05:30
Ashwin Phatak
2aaf6bcda3
Merge pull request #212 from deep-stack/pm-watched-addresses-v3
Statediff API (v3) to change addresses watched in direct indexing mode
2022-04-05 09:33:51 +05:30
52df3460d6 Create file for watched addresses only when required 2022-04-01 14:58:50 +05:30
710312378a Add indexer unit tests for loading watched addresses 2022-04-01 14:58:50 +05:30
e7526469db Add file mode indexer unit tests for watched address methods 2022-04-01 14:58:50 +05:30
a7f9354f0e Implement watch address indexer methods for file mode 2022-04-01 14:58:50 +05:30
12b9f50930 Update context used in watch address indexer functions 2022-04-01 14:56:29 +05:30
750e44e9e6 Add builder test for removal of watched addresses 2022-04-01 14:55:33 +05:30
f3761efe76 Add a fix in builder for removal of a non-watched address 2022-04-01 14:55:33 +05:30
7f38afe542 Add tests for the API to change addresses being watched 2022-04-01 14:55:33 +05:30
af4dbed9d2 Add tests for indexer methods used to change addresses being watched 2022-04-01 14:55:33 +05:30
8fc2c09634 Add placeholder indexer methods for file and dump modes 2022-04-01 14:55:33 +05:30
9b234ef5b4 Statediff API to change addresses being watched in direct indexing 2022-04-01 14:55:33 +05:30
Abdul Rabbani
c8b68db48c
Merge pull request #217 from vulcanize/feature/known-gaps
Feature/known gaps
2022-03-31 14:38:59 -04:00
Abdul Rabbani
d24a49ef03 Add Workflow dispatch for docker builds 2022-03-31 14:14:34 -04:00
Abdul Rabbani
102f874c63 Update known_gaps table name 2022-03-31 14:11:57 -04:00
Abdul Rabbani
359799dee2 Update docker compose 2022-03-31 14:02:30 -04:00
Abdul Rabbani
2e836e869a PR Updates as per Ian's request 2022-03-31 11:37:01 -04:00
Abdul Rabbani
a60d5a016d Code Clean Up 2022-03-30 17:30:19 -04:00
Abdul Rabbani
fc6a9379e1 Add Prometheus metrics and write SQL file if it has data. 2022-03-30 12:53:44 -04:00
Abdul Rabbani
b960661807 Refactor: Decouple knownGaps and Indexer
This commit decouples knownGaps and Indexer. All knownGaps logic is in its own file. This makes testing and maintainability easier.

We have also removed all efforts to check the `lastProcessedblock` - This is because we won't ever run into this issue (hyptothetically), because geth won't let it happen.
2022-03-29 16:45:26 -04:00
Martin Holst Swende
25c9b49fdb
params: go-ethereum v1.10.17 stable 2022-03-29 19:18:26 +02:00
Marius van der Wijden
de6a113f84
eth/catalyst: only apply block if we actually have the state (#24598)
* eth/catalyst: only apply block if we actually have the state

* add header to payload queue

* Update cmd/geth/dbcmd.go

Co-authored-by: Martin Holst Swende <martin@swende.se>

Co-authored-by: Martin Holst Swende <martin@swende.se>
2022-03-29 18:26:18 +02:00
jwasinger
b502b6ac97
cmd/geth: change to non-fatal error message when legacy receipt storage is not implemented (#24603)
* cmd/geth: only check for presence of legacy receipts if developer mode is not enabled

* cmd/geth: degrade log level

* cmd/geth: fix format

Co-authored-by: Gary Rong <garyrong0905@gmail.com>
2022-03-29 10:40:42 +02:00
Péter Szilágyi
1027cb52c4
Merge pull request #24605 from karalabe/revert-setting-ttd
core: set ttd override on all chain variations
2022-03-29 11:39:45 +03:00
Zhang Zhuo
b06e8c4a8a
core/vm: fix sstore gas comment type (#24583) 2022-03-29 11:21:11 +03:00
Péter Szilágyi
b45d82e94a
core: set ttd override on all chain variations 2022-03-29 11:03:01 +03:00
Abdul Rabbani
fc341a90fc ** Write to file if you can't write to DB
This commit contains many new features:

1. Write the insert statement to file if there is an error when trying to write to DB.
2. Test the write to DB and write to file features in unit tests. They work as expected.
3. Insert logic for calling the knownGaps function (untested).

This PR makes a major change to the way statediff is started. Unless it is started in `file` mode, it will create a `file` indexer. This indexer will be used for writing errors to disk.
2022-03-28 15:00:29 -04:00
Martin Holst Swende
0fffd3acbd
build: close sftp connection when done (#24593) 2022-03-27 13:21:36 +02:00
Abdul Rabbani
f566aa780c % Checkpoint - Added the feature to write to File if writing to DB errors out. NOT TESTED 2022-03-25 16:50:43 -04:00
Martin Holst Swende
eb3ebceaa1
internal/build: exit sftp upload (#24590) 2022-03-25 16:46:31 +01:00
Martin Holst Swende
d1c243f841
internal/build: prevent travis timeout during ppa upload (#24589) 2022-03-25 15:43:07 +01:00
Martin Holst Swende
19b9cf714f
internal/build: show ppa upload process stdout on stdout (#24588) 2022-03-25 15:06:29 +01:00