Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
b42d7ba4
Commit
b42d7ba4
authored
4 years ago
by
Shawn Tabrizi
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Companion for #6511 (#1321)
* Add custom runtime upgrade for retract tip * cargo update -p sp-io
parent
c8a03906
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
polkadot/runtime/kusama/src/lib.rs
+16
-1
16 additions, 1 deletion
polkadot/runtime/kusama/src/lib.rs
with
16 additions
and
1 deletion
polkadot/runtime/kusama/src/lib.rs
+
16
−
1
View file @
b42d7ba4
...
...
@@ -880,6 +880,14 @@ impl proxy::Trait for Runtime {
type
MaxProxies
=
MaxProxies
;
}
pub
struct
CustomOnRuntimeUpgrade
;
impl
frame_support
::
traits
::
OnRuntimeUpgrade
for
CustomOnRuntimeUpgrade
{
fn
on_runtime_upgrade
()
->
frame_support
::
weights
::
Weight
{
treasury
::
Module
::
<
Runtime
>
::
migrate_retract_tip_for_tip_new
();
500_000_000
}
}
construct_runtime!
{
pub
enum
Runtime
where
Block
=
Block
,
...
...
@@ -981,7 +989,14 @@ pub type UncheckedExtrinsic = generic::UncheckedExtrinsic<Address, Call, Signatu
/// Extrinsic type that has already been checked.
pub
type
CheckedExtrinsic
=
generic
::
CheckedExtrinsic
<
AccountId
,
Nonce
,
Call
>
;
/// Executive: handles dispatch to the various modules.
pub
type
Executive
=
executive
::
Executive
<
Runtime
,
Block
,
system
::
ChainContext
<
Runtime
>
,
Runtime
,
AllModules
>
;
pub
type
Executive
=
executive
::
Executive
<
Runtime
,
Block
,
system
::
ChainContext
<
Runtime
>
,
Runtime
,
AllModules
,
CustomOnRuntimeUpgrade
>
;
/// The payload being signed in the transactions.
pub
type
SignedPayload
=
generic
::
SignedPayload
<
Call
,
SignedExtra
>
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment