ethereum / ethereumj

DEPRECATED! Java implementation of the Ethereum yellowpaper. For JSON-RPC and other client features check Ethereum Harmony
GNU Lesser General Public License v3.0
2.18k stars 1.1k forks source link

Beacon chain block import #1145

Closed mkalinin closed 6 years ago

mkalinin commented 6 years ago

Addresses a backbone implementation for block processing part. It should have a modular design and connect all parts of import process together:

"First best" algorithm is pretty simple, among N blocks with same slot number the best one is a block that has been imported first.

There is no necessity to implement this task apart from the others. It can be covered by work done within the other tickets.

mkalinin commented 6 years ago

A note to state storage step: The spec decouples active state from crystallized state. At the first glance there is no need for that, hence I propose an implementation with a single state storage that holds both states described by the spec. Let's just try to check whether single state works or not.