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

[WIP] Add inbound queue #750

Draft
wants to merge 7 commits into
base: tomasz-generic-aggregate-message-origin
Choose a base branch
from

Conversation

ParthDesai
Copy link
Contributor

@ParthDesai ParthDesai commented Nov 18, 2024

Description

This PR adds inbound queue to starlight and include tests for the same.

It adds message processor called SymbioticMessageProcessor which upon receiving new validators, calls ExternalValidators pallet to set the validators.

What is remaining?

  • Benchmarking

Note

The base of the PR is at tomasz-generic-aggregate-message-origin since this PR is dependent upon code introduced there.

Copy link
Contributor

github-actions bot commented Nov 18, 2024

WASM runtime size check:

Compared to target branch

dancebox runtime: 1412 KB (no changes) ✅

flashbox runtime: 832 KB (no changes) ✅

dancelight runtime: 2088 KB (no changes) ✅

container chain template simple runtime: 1088 KB (no changes) ✅

container chain template frontier runtime: 1388 KB (no changes) ✅

@ParthDesai ParthDesai changed the title [WIP] Add inbound queue + tests [WIP] Add inbound queue Nov 18, 2024
/// indeed send a message intended for this processor.
pub const MAGIC_BYTES: [u8; 4] = [112, 21, 0, 56];

#[derive(Encode, Decode)]
Copy link
Collaborator

Choose a reason for hiding this comment

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

same, can we move to primitives?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

github-actions bot commented Nov 20, 2024

Coverage Report

(master)

@@                                  Coverage Diff                                   @@
##           tomasz-generic-aggregate-message-origin   add-inbound-queue      +/-   ##
======================================================================================
- Coverage                                    65.34%              64.89%   -0.45%     
+ Files                                          310                 318       +8     
+ Lines                                        54174               54607     +433     
======================================================================================
+ Hits                                         35395               35434      +39     
+ Misses                                       18779               19173     +394     
Files Changed Coverage
/pallets/external-validator-slashes/src/lib.rs 74.71% (-10.25%)
/solo-chains/runtime/dancelight/src/lib.rs 66.84% (-1.05%)

Coverage generated Thu Nov 21 17:47:41 UTC 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants