ChainSafe / ChainSafe/gossamer

(BEEFY): Handle beefy justifications

Open
#4,179 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
454
Forks
144
PR merge metrics
No merged PRs in 30d

Description

We need to handle the beefy justifications coming as part of some blocks headers.
For this, we are gonna need to modify the `processBlockData` method we are executing when processing blocks and add the following:

1. Implement `FinalityGadget.VerifyBlockJustification` interface method in `lib/beefy/message_handler.go`
2. Add `SetBeefyFinalisedHash` and `SetBeefyJustification` as part of `BlockState` interface
3. Implement these methods in `BlockState` `/dot/state/block_finalilsation` similar to current `SetFinalisedHash` and `SetJustification` used for grandpa
4. Add the logic to handle beefy justifications when we are processing blocks in `chainSync.processBlockData` `/dot/sync/chain_sync.go`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.