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

Fork choice rule with attestations #1194

Closed mkalinin closed 5 years ago

mkalinin commented 5 years ago

Abstract

Update fork choice rule with IMD GHOST algorithm.

Proposed implementation

New ScoreFunction should be implemented that uses IMD GHOST algorithm combined with finality.

Beacon chain fork choice rule is outlined in the spec. IMD GHOST is well described by following posts:

As finality is not yet implemented, there is a suggestion to use block with a highest slot number that satisfies condition <= head.slotNumber - CYCLE_LENGTH as highestSlotNumberJustifiedBlock

zilm13 commented 5 years ago

resolved with #1219