go-ethereum/trie
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
..
database.go trie: fix overflow in write cache parent tracking (#18165) 2018-11-22 15:14:31 +02:00
encoding_test.go Write state diff to CSV (#2) 2019-01-28 15:31:01 -06:00
encoding.go Write state diff to CSV (#2) 2019-01-28 15:31:01 -06:00
errors.go trie: more node iterator improvements (#14615) 2017-06-20 18:26:09 +02:00
hasher.go vendor, crypto, swarm: switch over to upstream sha3 package 2019-01-04 09:26:07 +02:00
iterator_test.go cmd, core, eth, light, trie: add trie read caching layer 2018-11-15 12:22:13 +02:00
iterator.go Write state diff to CSV (#2) 2019-01-28 15:31:01 -06:00
node_test.go trie, core/state: improve memory usage and performance (#3135) 2016-10-14 19:04:33 +03:00
node.go p2p, swarm, trie: avoid copying slices in loops (#17265) 2018-08-07 13:56:40 +03:00
proof_test.go trie: support proof generation from the iterator 2018-05-23 13:02:20 +03:00
proof.go trie: go fmt package 2018-11-16 16:35:39 +02:00
secure_trie_test.go all: get rid of error when creating memory database (#16716) 2018-05-09 15:24:25 +03:00
secure_trie.go trie: fixes to comply with golint (#16771) 2018-05-21 23:41:31 +03:00
sync_test.go trie: rename TrieSync to Sync and improve hexToKeybytes (#16804) 2018-05-29 17:48:43 +02:00
sync.go core, eth, trie: use common/prque (#17508) 2018-09-03 17:33:21 +02:00
trie_test.go cmd, core, eth, light, trie: add trie read caching layer 2018-11-15 12:22:13 +02:00
trie.go trie: remove unused originalRoot field (#17862) 2018-10-08 13:16:16 +02:00