ChainSafe / ChainSafe/gossamer

Update collator validator side State

Open
#4,698 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

### Description

- State:
- Missing collation fetch requests managment (with cancelation and timeouts) which inclues fields `collation_requests`, `collation_requests_cancel_handles` and `collation_fetch_timeouts`
- Reputation Aggregator
- `activeLeaves` should be a `map[common.Hash]struct{}`
- `fetchedCollations` field does not exist, instead there is a field `fetched_candidates` which is a `map[FetchedCollation]CollationEvent`
- `BlockedAdvertisements` field does not exist, instead there is `blocked_from_seconding` which is a `map[BlockedCollationId][]pendingCollationFetch`
- Implement `seconded_and_pending_for_para`: Returns the number of seconded and pending collations for a specific `ParaId`.

### Links:
https://github.com/paritytech/polkadot-sdk/blob/c679ed79a1de575d4c3d5b8878b3e401b024f2f2/polkadot/node/network/collator-protocol/src/validator_side/mod.rs#L353

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.