ChainSafe / ChainSafe/gossamer
(BEEFY): Handle beefy justifications
- 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
Assessment
This issue has not been assessed yet.