ChainSafe / ChainSafe/gossamer

Implement active leaves update

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

Description

## Issue summary

When new active leave appears subsystem updates state with new PVFs (if they are exist in new leave) using `InterestView::on_leaves_update` method
and initiate pre-check for them. PVFs from deactivated leaves are removed from list.

## Implementation details

- handle overseer signal for new active leaves update
- update PVF precheck view (add new active and remove deactivated pvf)
- initiate pre-check on new PVFs
- vote for previously observed but not voted judgements (if you node was not in active set before)

## Other information and links

- https://github.com/paritytech/polkadot-sdk/blob/master/polkadot/node/core/pvf-checker/src/lib.rs#L265

## Acceptance criteria

[] implement handle of active leaves signal
[] Regression testing (if applicable)
[] New code is 60% covered with unit tests

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.