-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Labels
choreCategory: choreCategory: chorespecsScope: Changes to the specificationsScope: Changes to the specifications
Description
I'm not too confident I get this right at all but creating this issue for tracking & discussion...
Fork choice store is carrying a lot of responsibilities that are beyond fork choice decision and we should move these out of it:
-
forkchoice.store._validate_block_signatures()-> should already be validated before entering fork choice -
forkchoice.store._process_block_body_attestations()-> fork choice should only know of attestations throughstore.on_attestation(), maybe triggered bystate.process_attestation() -
forkchoice.store._process_proposer_attestation()-> fork choice should only know of attestations throughstore.on_attestation(), maybe triggered bystate.process_block() -
produce_block_with_signatures()-> fork choice should only need to provideget_proposal_head() -
produce_attestation()-> fork choice should only need to provideget_attestation_target()
Thanks to @jihoonsong for raising this earlier in group chats
jihoonsong
Metadata
Metadata
Assignees
Labels
choreCategory: choreCategory: chorespecsScope: Changes to the specificationsScope: Changes to the specifications