Relay all block data + statediffs over full node websocket subscription #9

Closed
i-norden wants to merge 11 commits from rpc_statediffs_at_head into statediffing

11 Commits

Author SHA1 Message Date
Ian Norden
79c9c5e598 edit to fix tests after rebase + linting + a semi-mock service test 2019-04-21 12:41:08 -05:00
Ian Norden
cc58d94cc3 adjust state diffs to form closer to the eth-ipld objects we need to publish + pass their proofs and paths along with them; adjust tests 2019-04-21 12:39:50 -05:00
Ian Norden
131bd1d81d websocket stream of block + state diff data for seed node 2019-04-21 12:39:50 -05:00
Elizabeth Engelman
22d78f23cd Address PR comments 2019-04-21 12:39:50 -05:00
Elizabeth Engelman
8fc2cab837 Address PR comments 2019-04-21 12:38:30 -05:00
Elizabeth Engelman
9774f934d2 Apply go fmt changes 2019-04-21 12:36:19 -05:00
Elizabeth Engelman
9ec5d29256 Clean up log lines and remove unnecessary fields from builder 2019-04-21 12:36:00 -05:00
Elizabeth Engelman
38a55abb0b Make sure that statediff has been processed before pruning 2019-04-21 12:33:43 -05:00
Elizabeth Engelman
91b5f52ef7 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-04-21 12:29:59 -05:00
Elizabeth Engelman
3b049aeb83 Open a trie from the in-memory database 2019-04-21 12:23:47 -05:00
Elizabeth Engelman
1c59dfdca6 Apply go fmt changes to statediff 2019-04-21 12:22:50 -05:00