roysc
6f3b27cd9c
port tests to go testing
...
drop ginkgo/gomega
2020-11-05 21:57:47 +08:00
roysc
cd8ae90e9e
use geth log
2020-11-05 19:25:34 +08:00
roysc
693b86370a
logging
2020-10-30 13:43:16 +08:00
roysc
2b25daf46e
[wip] update test mocks
...
todo - do something meaningful to test write loop
2020-10-28 14:38:24 +08:00
roysc
1984446ad2
statediff WriteLoop service + CLI flag
2020-10-28 14:38:24 +08:00
roysc
20dcefa703
tidy & DRY
2020-10-26 18:56:47 +08:00
roysc
cb1f0d517a
cleanup
2020-10-24 22:33:51 +08:00
roysc
ebbce34667
[wip] prom.Init() here? another CLI flag?
2020-10-24 22:30:42 +08:00
roysc
b2fb91fb2a
duplicate recent eth-indexer changes
...
migrations and metrics...
2020-10-24 22:29:21 +08:00
roysc
dc18a76e30
prometheus metrics output
2020-10-24 22:01:17 +08:00
roysc
619f147b4e
output code & codehash iteratively
...
had to rf some types for this
2020-10-24 16:58:16 +08:00
roysc
9f973d5cbf
cleanup
2020-10-24 14:32:09 +08:00
roysc
f4392d1009
rm unused
2020-10-24 14:30:48 +08:00
roysc
74a972f649
go.mod update
2020-10-23 22:04:43 +08:00
roysc
611c58665e
rename PostgresCIDWriter.{index->upsert}*
...
less ambiguous
2020-10-23 22:04:34 +08:00
roysc
51d20540ff
Implement WriteStateDiffAt
...
Writes state diffs directly to postgres
Adds CLI flags to configure PG
Refactors builder output with callbacks
Copies refactored postgres handling code from ipld-eth-indexer
2020-10-23 21:47:44 +08:00
Ian Norden
f61649ed31
bump version meta
v1.9.11-statediff-0.0.8
2020-10-19 10:23:51 -05:00
Ian Norden
1cb2384f7e
Merge pull request #28 from vulcanize/codeAndCodeHash
...
subscription endpoint for retrieving all the codehash=>code mappings …
2020-10-14 07:53:32 -05:00
Ian Norden
dc399a85fd
subscription endpoint for retrieving all the codehash=>code mappings that exist at provided height
2020-10-13 23:12:29 -05:00
Ian Norden
ca9f5a8eab
Merge pull request #27 from vulcanize/codeAndCodeHash
...
collect and emit codehash=>code mappings in state objects
2020-10-13 22:52:00 -05:00
Ian Norden
9b1e3164ea
collect and emit codehash=>code mappings for state objects
2020-10-13 13:32:56 -05:00
Ian Norden
7c0492a204
use context deadline for timeout in eth_call
v1.9.11-statediff-0.0.7
2020-10-12 10:20:21 -05:00
Ian Norden
1552c6136b
bump version meta
2020-10-12 10:20:18 -05:00
ramil
644482293f
fix publishing assets in release
v1.9.11-statediff-0.0.6
2020-08-27 07:49:10 +03:00
ramil
a7dab8ecfe
fix ci build on statediff_at_anyblock-1.9.11 branch
2020-08-26 17:56:58 +03:00
Ramil Amerzyanov
d58d660fcd
CI build ( #20 )
...
* CI: run build on PR and on push to master
* CI: debug building geth
* CI: fix coping file
* CI: fix coping file v2
* CI: temporary upload file to release asset
* CI: get release upload_url by tag, upload asset to current relase
* CI: fix tag name
2020-08-26 17:55:11 +03:00
Ian Norden
acfec4c05f
log the sizes of the state objects we are sending
2020-08-19 14:44:11 -05:00
Ian Norden
96011494df
increase maxRequestContentLength; bump patch
v1.9.11-statediff-0.0.5
2020-08-17 16:32:24 -05:00
Ian Norden
a69ee0b441
fix mock blockchain; golint; bump patch
v1.9.11-statediff-0.0.4
2020-08-14 14:58:57 -05:00
Ian Norden
e1e392f4fb
update version meta
v1.9.11-statediff-0.0.3
2020-08-14 12:07:34 -05:00
Ian Norden
c94e07e2c0
if statediffing is on, lock tries in triedb until the statediffing service signals they are done using them
2020-08-14 12:03:51 -05:00
Ian Norden
e004e9b94b
update version meta
v1.9.11-statediff-0.0.2
2020-05-21 15:33:28 -05:00
Ian Norden
97454eb6fe
minor changes/fixes
2020-05-21 15:07:19 -05:00
Ian Norden
7ba6efa59c
test for state trie builder
2020-05-19 14:39:25 -05:00
Ian Norden
44aefa849b
add endpoint to fetch all state and storage nodes at a given blockheight; useful for generating a recent atate cache/snapshot that we can diff forward from rather than needing to collect all diffs from genesis
2020-05-18 20:44:17 -05:00
Ian Norden
f572e8d716
finish testing known edge cases
2020-05-18 01:27:58 -05:00
Ian Norden
e3b6d3df1c
tests for eip-158 account removal and storage value deletions; there is one edge case left to test where we remove 1 account when only two exist such that the remaining account is moved up and replaces the root branch node
2020-05-17 23:04:31 -05:00
Ian Norden
e37ce73971
handle storage deletions
2020-05-17 20:43:23 -05:00
Ian Norden
9b6e486799
use new contract in unit tests that has self-destruct ability, so we can test eip-158 since simply moving an account to new path doesn't count as 'touchin' it
2020-05-17 15:14:53 -05:00
Ian Norden
face00ca01
found an account whose creation causes the empty account to be moved to a new path; this should count as 'touching; the empty account and cause it to be removed according to eip-158... but it doesn't
2020-05-15 21:12:17 -05:00
Ian Norden
3c514837f3
adjust chain maker for tests to add an empty account in block1 and switch to EIP-158 afterwards (now we just need to generate enough accounts until one causes the empty account to be touched and removed post-EIP-158 so we can simulate and test that process...); also added 2 new blocks where more contract storage is set and old slots are set to zero so they are removed so we can test that
2020-05-15 20:06:06 -05:00
Ian Norden
859e18aea4
cleanup chain maker
2020-05-14 22:46:21 -05:00
Ian Norden
c4529a1139
storage leafkey filter test
2020-05-14 17:39:51 -05:00
Ian Norden
e7b78dae41
update api_test.go
2020-05-14 16:14:40 -05:00
Ian Norden
ea9a8feb81
update mainnet blocks test
2020-05-14 16:14:29 -05:00
Ian Norden
2ad905ff75
comments; explain logic
2020-05-14 16:03:36 -05:00
Ian Norden
aa7c5b0869
add ability to watch specific storage slots (leaf keys) only
2020-05-13 14:28:35 -05:00
Ian Norden
347a7ba0e8
update top level tests
2020-05-13 14:03:45 -05:00
Ian Norden
93781fba83
update service and api; statediffing params are now defined by user through api rather than by service provider by cli
2020-05-13 14:03:45 -05:00
Ian Norden
afd3a61bf0
remove unneeded bc methods
2020-05-13 14:03:40 -05:00