go-ethereum/eth
Elizabeth 52274e48a1
Write state diff to CSV (#2)
* port statediff from 9b7fd9af80/statediff/statediff.go; minor fixes

* integrating state diff extracting, building, and persisting into geth processes

* work towards persisting created statediffs in ipfs; based off github.com/vulcanize/eth-block-extractor

* Add a state diff service

* Remove diff extractor from blockchain

* Update imports

* Move statediff on/off check to geth cmd config

* Update starting state diff service

* Add debugging logs for creating diff

* Add statediff extractor and builder tests and small refactoring

* Start to write statediff to a CSV

* Restructure statediff directory

* Pull CSV publishing methods into their own file

* Reformatting due to go fmt

* Add gomega to vendor dir

* Remove testing focuses

* Update statediff tests to use golang test pkg

instead of ginkgo

- builder_test
- extractor_test
- publisher_test

* Use hexutil.Encode instead of deprecated common.ToHex

* Remove OldValue from DiffBigInt and DiffUint64 fields

* Update builder test

* Remove old storage value from updated accounts

* Remove old values from created/deleted accounts

* Update publisher to account for only storing current account values

* Update service loop and fetching previous block

* Update testing

- remove statediff ginkgo test suite file
- move mocks to their own dir

* Updates per go fmt

* Updates to tests

* Pass statediff mode and path in through cli

* Return filename from publisher

* Remove some duplication in builder

* Remove code field from state diff output

this is the contract byte code, and it can still be obtained by querying
the db by the codeHash

* Consolidate acct diff structs for updated & updated/deleted accts

* Include block number in csv filename

* Clean up error logging

* Cleanup formatting, spelling, etc

* Address PR comments

* Add contract address and storage value to csv

* Refactor accumulating account row in csv publisher

* Add DiffStorage struct

* Add storage key to csv

* Address PR comments

* Fix publisher to include rows for accounts that don't have store updates

* Update builder test after merging in release/1.8

* Update test contract to include storage on contract intialization

- so that we're able to test that storage diffing works for created and
deleted accounts (not just updated accounts).

* Factor out a common trie iterator method in builder
2019-01-28 15:31:01 -06:00
..
downloader vendor, crypto, swarm: switch over to upstream sha3 package 2019-01-04 09:26:07 +02:00
fetcher core, eth, trie: use common/prque (#17508) 2018-09-03 17:33:21 +02:00
filters eth/filters: fix the block range assignment for log filter (#17284) 2018-07-31 12:10:38 +03:00
gasprice cmd, core, eth, miner, params: configurable gas floor and ceil 2018-08-29 12:40:12 +03:00
tracers eth/tracer: extend create2 (#18318) 2019-01-05 21:26:50 +01:00
api_backend.go core, internal, eth, miner, les: Take VM config from BlockChain (#17955) 2018-12-06 14:34:49 +01:00
api_test.go all: get rid of error when creating memory database (#16716) 2018-05-09 15:24:25 +03:00
api_tracer.go eth, internal/web3ext: tiny polishes in tracers 2018-12-10 12:33:50 +02:00
api.go cmd, core, eth, light, trie: add trie read caching layer 2018-11-15 12:22:13 +02:00
backend.go Write state diff to CSV (#2) 2019-01-28 15:31:01 -06:00
bloombits.go all: make indexer configurable (#17188) 2018-08-28 10:08:16 +03:00
config.go cmd/geth, core, eth: implement Constantinople override flag (#18273) 2018-12-11 14:19:03 +02:00
gen_config.go cmd, core, eth, light, trie: add trie read caching layer 2018-11-15 12:22:13 +02:00
handler_test.go cmd, eth: Add support for --whitelist <blocknum>=<hash>,... flag 2018-12-10 14:30:06 +02:00
handler.go cmd/utils, eth: minor polishes on whitelist code 2018-12-10 14:47:01 +02:00
helper_test.go cmd, eth: Add support for --whitelist <blocknum>=<hash>,... flag 2018-12-10 14:30:06 +02:00
metrics.go metrics: pull library and introduce ResettingTimer and InfluxDB reporter (#15910) 2018-02-23 11:56:08 +02:00
peer.go all: switch out defunct set library to different one (#16873) 2018-07-16 10:54:19 +03:00
protocol_test.go core, eth: minor txpool event cleanups 2018-05-18 12:08:24 +03:00
protocol.go eth: fixed the minor typo inside the comments (#17830) 2018-10-04 12:35:24 +03:00
sync_test.go all: new p2p node representation (#17643) 2018-09-25 00:59:00 +02:00
sync.go all: new p2p node representation (#17643) 2018-09-25 00:59:00 +02:00