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
4a32ae75
Commit
4a32ae75
authored
3 years ago
by
Bastian Köcher
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove old and add new migrations (#572)
parent
da5634a7
Branches
gh-readonly-queue/master/pr-3366-ef6ac94f5218368fd89ce73493909bbfbc0eace8
Branches containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cumulus/polkadot-parachains/statemine/src/lib.rs
+7
-4
7 additions, 4 deletions
cumulus/polkadot-parachains/statemine/src/lib.rs
cumulus/polkadot-parachains/westmint/src/lib.rs
+3
-2
3 additions, 2 deletions
cumulus/polkadot-parachains/westmint/src/lib.rs
with
10 additions
and
6 deletions
cumulus/polkadot-parachains/statemine/src/lib.rs
+
7
−
4
View file @
4a32ae75
...
...
@@ -43,7 +43,7 @@ use codec::{Decode, Encode, MaxEncodedLen};
use
constants
::{
currency
::
*
,
fee
::
WeightToFee
};
use
frame_support
::{
construct_runtime
,
match_type
,
parameter_types
,
traits
::{
Everything
,
Contains
,
InstanceFilter
},
traits
::{
Contains
,
Everything
,
InstanceFilter
},
weights
::{
constants
::{
BlockExecutionWeight
,
ExtrinsicBaseWeight
},
DispatchClass
,
IdentityFee
,
Weight
,
...
...
@@ -145,7 +145,9 @@ parameter_types! {
pub
struct
BaseFilter
;
impl
Contains
<
Call
>
for
BaseFilter
{
fn
contains
(
_c
:
&
Call
)
->
bool
{
true
}
fn
contains
(
_c
:
&
Call
)
->
bool
{
true
}
}
// Configure FRAME pallets to include in runtime.
...
...
@@ -739,8 +741,9 @@ pub type Executive = frame_executive::Executive<
pub
struct
OnRuntimeUpgrade
;
impl
frame_support
::
traits
::
OnRuntimeUpgrade
for
OnRuntimeUpgrade
{
fn
on_runtime_upgrade
()
->
u64
{
sp_io
::
storage
::
set
(
b":c"
,
&
[]);
RocksDbWeight
::
get
()
.writes
(
1
)
frame_support
::
migrations
::
migrate_from_pallet_version_to_storage_version
::
<
AllPalletsWithSystem
,
>
(
&
RocksDbWeight
::
get
())
}
}
...
...
This diff is collapsed.
Click to expand it.
cumulus/polkadot-parachains/westmint/src/lib.rs
+
3
−
2
View file @
4a32ae75
...
...
@@ -727,8 +727,9 @@ pub type Executive = frame_executive::Executive<
pub
struct
OnRuntimeUpgrade
;
impl
frame_support
::
traits
::
OnRuntimeUpgrade
for
OnRuntimeUpgrade
{
fn
on_runtime_upgrade
()
->
u64
{
sp_io
::
storage
::
set
(
b":c"
,
&
[]);
RocksDbWeight
::
get
()
.writes
(
1
)
frame_support
::
migrations
::
migrate_from_pallet_version_to_storage_version
::
<
AllPalletsWithSystem
,
>
(
&
RocksDbWeight
::
get
())
}
}
...
...
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