orbs-network / management-service

Reads network management state from Ethereum and reports it to Boyar and virtual chains
MIT License
2 stars 2 forks source link

Changed Ethereum model to classic block sync with aggregated state #35

Closed talkol closed 4 years ago

talkol commented 4 years ago

The model now doesn't just hold raw events.

Instead, it hold aggregated state where calculations over state are performed as new events are fetched (instead of on query like before).

Together with the model change, we've moved to classic block sync that synchronizes over all blocks in Ethereum from genesis to latest in order to create the aggregated state.

Did a 2 hour design review with Ron before completing the code, so it's best Ron reviews this PR.