go-ethereum/cmd/geth
Elizabeth 7c6876c659 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-07-17 13:40:14 -05:00
..
testdata cmd/geth: add tests for account commands 2016-04-12 15:58:07 +02:00
accountcmd_test.go accounts, cmd, internal, signer: add note about backing up the keystore (#19432) 2019-05-07 15:49:51 +03:00
accountcmd.go accounts, cmd, internal, signer: add note about backing up the keystore (#19432) 2019-05-07 15:49:51 +03:00
chaincmd.go core/state, cmd/geth: streaming json output for dump command (#15475) 2019-06-24 17:16:44 +03:00
config.go Write state diff to CSV (#2) 2019-07-17 13:40:14 -05:00
consolecmd_test.go cmd, internal/build, docker: advertise commit date in unstable build versions (#19522) 2019-05-08 16:44:28 +03:00
consolecmd.go cmd, node, p2p/simulations: fix node account manager leak (#19004) 2019-02-07 12:40:36 +02:00
dao_test.go all: clean up and proerly abstract database access 2019-03-06 13:35:03 +02:00
genesis_test.go cmd/geth: remove the tail "," from genesis config (#17028) 2018-06-21 10:44:39 +03:00
main.go Write state diff to CSV (#2) 2019-07-17 13:40:14 -05:00
misccmd.go cmd, internal/build, docker: advertise commit date in unstable build versions (#19522) 2019-05-08 16:44:28 +03:00
retesteth_copypaste.go cmd: Add retesteth command (to support execution and generation of tests via retesteth) (#19631) 2019-06-05 14:03:23 +02:00
retesteth.go eth: add debug_accountRange (#17438) 2019-07-13 15:48:55 +02:00
run_test.go swarm/test: add integration test for 'swarm up' (#14353) 2017-06-21 14:54:23 +02:00
usage.go Write state diff to CSV (#2) 2019-07-17 13:40:14 -05:00