Statediff for full node #6

Merged
elizabethengelman merged 9 commits from statediff-for-full-node into statediff-for-archive-node 2019-02-21 20:36:04 +00:00
9 Commits
Author SHA1 Message Date
Elizabeth Engelman 272d2f7ef8 Address PR comments 2019-02-20 10:07:21 -06:00
Elizabeth Engelman f2047cc503 Address PR comments 2019-02-15 10:28:17 -06:00
Elizabeth Engelman 4d6ddf92db Add a sleep to the blockchain test 2019-02-14 13:24:46 -06:00
Elizabeth Engelman 7995c5ab9f Apply go fmt changes 2019-02-13 09:01:31 -06:00
Elizabeth Engelman e3805807de Clean up log lines and remove unnecessary fields from builder 2019-02-12 15:00:19 -06:00
Elizabeth Engelman 08d0fe314b Use blockchain stateCache.OpenTrie for storage diffs 2019-02-12 14:59:44 -06:00
Elizabeth Engelman 79686c98b0 Make sure that statediff has been processed before pruning 2019-02-12 14:36:12 -06:00
Elizabeth Engelman 498831ec13 Use a node's LeafKey as an identifier instead of the address
It was proving difficult to find look the address up from a given path
with a full node (sometimes the value wouldn't exist in the disk db).
So, instead, for now we are using the node's LeafKey with is a Keccak256
hash of the address, so if we know the address we can figure out which
LeafKey it matches up to.
2019-02-12 14:29:02 -06:00
Elizabeth Engelman 3a5f7b7532 Open a trie from the in-memory database 2019-02-12 14:29:02 -06:00