Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(parachain/collator): handle backed overseer message #3559

Merged
merged 94 commits into from
Feb 22, 2024

Conversation

kishansagathiya
Copy link
Contributor

@kishansagathiya kishansagathiya commented Oct 31, 2023

Changes

Collator Protocol Subsystem receives a Backed message from overseer. This message tells collator protocol when a candidate has been backed.
This PR processes that backed message. Unblocks blocked advertisements as per the situation.

Tests

go test -tags integration github.com/ChainSafe/gossamer

Issues

Fixes #3517

Primary Reviewer

@axaysagathiya

kanishkatn and others added 30 commits September 14, 2023 17:38
Co-authored-by: Kishan Sagathiya <[email protected]>
…ement/1 protocol (#3354)

- Added `StatementFetchingRequest` and `StatementFetchingResponse`  varying data types.

- implemented 'network.Message` interface in `StatementFetchingRequest` and 'network.ResponseMessage` interface in `StatementFetchingResponse` as they will be passed into `func (rrp *RequestResponseProtocol) Do(to peer.ID, req Message, res ResponseMessage) error` function as `req` and `res`.

- I didn't want to create a new YAML file here. so I decided to rename the YAML file name and variable(in which data of the YAML file getting unmarshalled) name so that I can use them in this PR.
…chunk/1 protocol (#3362)

- Added `ChunkFetchingRequest` and `ChunkFetchingResponse` types.

- implemented network.Message interface in `ChunkFetchingRequest` and 'network.ResponseMessage' interface in `ChunkFetchingResponse`
…available_data/1 protocol (#3368)

- Added AvailableDataFetchingRequest and AvailableDataFetchingResponse types.
- Implemented 'network.Message' interface in AvailableDataFetchingRequest and 'network.ResponseMessage' interface in AvailableDataFetchingResponse as they will be passed into this function as req and res.
…g statement and collation (#3374)

added New() method and decode test for below varying data types. 
- statement
- statement distribution message
- collation protocol
- collator protocol message
…pov/1 protocol (#3365)

- Added PoVFetchingRequest and PoVFetchingResponse types.
- Implemented 'network.Message' interface in PoVFetchingRequest and 'network.ResponseMessage' interface in PoVFetchingResponse as they will be passed into this function as req and res.
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
Implemented following parachain host runtime calls
- ParachainHost_persisted_validation_data
- ParachainHost_validation_code
This commit adds all the functions required for parachain candidate validations.

With this commit, we are able to take candidate receipts and
- get validation data for it,
- perform basic checks on it,
- run respective parachain's validate_block on parachain's runtime,
- get validate results from parachain's runtime and verify those validation results again relaychain runtime,
- and declare candidate as valid or invalid in the end.

This commit also includes tests for candidate validation.
…3382)

Co-authored-by: Kanishka <[email protected]>
Co-authored-by: Kishan Mohanbhai Sagathiya <[email protected]>
Co-authored-by: Axay Sagathiya <[email protected]>
Use wazero runtime instance instead of wasmer runtime instance
…sons (#3498)

Also, added enums for common reputation values
@kishansagathiya kishansagathiya changed the title handling backed message feat(parachain/collator): handle backed overseer message Feb 15, 2024
@kishansagathiya kishansagathiya marked this pull request as ready for review February 15, 2024 10:29
Copy link
Contributor

@axaysagathiya axaysagathiya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kishansagathiya kishansagathiya merged commit cca4909 into feat/parachain Feb 22, 2024
22 checks passed
@kishansagathiya kishansagathiya deleted the kishan/feat/parachain/collation-backed branch February 22, 2024 15:16
timwu20 pushed a commit that referenced this pull request Jun 15, 2024
Collator Protocol Subsystem receives a Backed message from overseer. This message tells collator protocol when a candidate has been backed.
This commit processes that backed message. Unblocks blocked advertisements as per the situation.
timwu20 pushed a commit that referenced this pull request Jun 17, 2024
Collator Protocol Subsystem receives a Backed message from overseer. This message tells collator protocol when a candidate has been backed.
This commit processes that backed message. Unblocks blocked advertisements as per the situation.
timwu20 pushed a commit that referenced this pull request Jun 20, 2024
Collator Protocol Subsystem receives a Backed message from overseer. This message tells collator protocol when a candidate has been backed.
This commit processes that backed message. Unblocks blocked advertisements as per the situation.
kishansagathiya added a commit that referenced this pull request Jul 15, 2024
Collator Protocol Subsystem receives a Backed message from overseer. This message tells collator protocol when a candidate has been backed.
This commit processes that backed message. Unblocks blocked advertisements as per the situation.
kishansagathiya added a commit that referenced this pull request Jul 15, 2024
Collator Protocol Subsystem receives a Backed message from overseer. This message tells collator protocol when a candidate has been backed.
This commit processes that backed message. Unblocks blocked advertisements as per the situation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-subsystems-collator issues related to polkadot host collator subsystem functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants