-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pallet services payment to runtime (#314)
* Add services payment pallet to runtime, using mock impl * Burn one credit when a container chain has a new highest block Will always burn at most 1 credit per tanssi block, even if the container chain has created more than 1 block in that time. * Do not assign collators to container chains with no credits * Add migration that gives credits to existing parachains * Set MaxCreditsStored to 60 days worth of blocks * Add benchmarks to pallet_services_payment * Add set_credits extrinsic for root, and unit tests * Fix collator-assignment benchmark and weights * Fix collator assignment new_session weight hint * impl AuthorNotingHook for tuples
- Loading branch information
1 parent
e3cf7de
commit 94cc02d
Showing
29 changed files
with
1,860 additions
and
601 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.