-
Notifications
You must be signed in to change notification settings - Fork 51
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
ServicesPayment in Starlight runtime #649
Conversation
Coverage Report@@ Coverage Diff @@
## master fg-services-payment-starlight +/- ##
=================================================================
+ Coverage 66.11% 66.19% +0.08%
+ Files 263 264 +1
+ Lines 45754 45952 +198
=================================================================
+ Hits 30246 30414 +168
+ Misses 15508 15538 +30
|
zombie_tanssi_relay tests are failing because parachain 1000 is not producing blocks. Maybe it doesn't have credits? |
@tmpolaczyk it's passing now |
```bash | ||
STARLIGHT_EPOCH_DURATION=10 ./polkadot/scripts/build-only-wasm.sh starlight-runtime /path/to/output/directory/ | ||
./polkadot/scripts/build-only-wasm.sh starlight-runtime /path/to/output/directory/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed this so EpochDurationInBlocks
could be a const, so FreeCollatorAssignmentCredits
could also be a const. It wasn't needed, but I didn't see any place where we were using this env variable that came from Rococo.
XcmCoreBuyer::para_deregistered(para_id); | ||
*/ | ||
ServicesPayment::para_deregistered(para_id); | ||
|
||
Weight::default() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems we are not using this returned weight. Plus the pallet specific handlers also not returning Weight
, Can we remove this in future PRs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor comment which is not blocking.
Rest looks good.
Adds
ServicePayment
pallet to Starlight runtime. This also enables service charging on collator assignment, free credits on registration and removal of assignment on insufficient credits.