Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
88db2d85
Unverified
Commit
88db2d85
authored
Aug 10, 2021
by
Martin Pugh
Committed by
GitHub
Aug 10, 2021
Browse files
remove old migrations (#3609)
parent
0f5e37ce
Pipeline
#152195
passed with stages
in 38 minutes and 22 seconds
Changes
3
Pipelines
2
Show whitespace changes
Inline
Side-by-side
runtime/kusama/src/lib.rs
View file @
88db2d85
...
...
@@ -1485,7 +1485,7 @@ pub type Executive = frame_executive::Executive<
frame_system
::
ChainContext
<
Runtime
>
,
Runtime
,
AllPallets
,
(
RemoveCollectiveFlip
,
MigratePalletVersionToStorageVersion
)
,
MigratePalletVersionToStorageVersion
,
>
;
/// The payload being signed in the transactions.
pub
type
SignedPayload
=
generic
::
SignedPayload
<
Call
,
SignedExtra
>
;
...
...
@@ -1501,16 +1501,6 @@ impl OnRuntimeUpgrade for MigratePalletVersionToStorageVersion {
}
}
pub
struct
RemoveCollectiveFlip
;
impl
frame_support
::
traits
::
OnRuntimeUpgrade
for
RemoveCollectiveFlip
{
fn
on_runtime_upgrade
()
->
Weight
{
use
frame_support
::
storage
::
migration
;
// Remove the storage value `RandomMaterial` from removed pallet `RandomnessCollectiveFlip`
migration
::
remove_storage_prefix
(
b"RandomnessCollectiveFlip"
,
b"RandomMaterial"
,
b""
);
<
Runtime
as
frame_system
::
Config
>
::
DbWeight
::
get
()
.writes
(
1
)
}
}
#[cfg(not(feature
=
"disable-runtime-api"
))]
sp_api
::
impl_runtime_apis!
{
impl
sp_api
::
Core
<
Block
>
for
Runtime
{
...
...
runtime/polkadot/src/lib.rs
View file @
88db2d85
...
...
@@ -1124,7 +1124,7 @@ pub type Executive = frame_executive::Executive<
frame_system
::
ChainContext
<
Runtime
>
,
Runtime
,
AllPallets
,
(
RemoveCollectiveFlip
,
MigratePalletVersionToStorageVersion
)
,
MigratePalletVersionToStorageVersion
,
>
;
/// The payload being signed in transactions.
pub
type
SignedPayload
=
generic
::
SignedPayload
<
Call
,
SignedExtra
>
;
...
...
@@ -1140,16 +1140,6 @@ impl OnRuntimeUpgrade for MigratePalletVersionToStorageVersion {
}
}
pub
struct
RemoveCollectiveFlip
;
impl
frame_support
::
traits
::
OnRuntimeUpgrade
for
RemoveCollectiveFlip
{
fn
on_runtime_upgrade
()
->
Weight
{
use
frame_support
::
storage
::
migration
;
// Remove the storage value `RandomMaterial` from removed pallet `RandomnessCollectiveFlip`
migration
::
remove_storage_prefix
(
b"RandomnessCollectiveFlip"
,
b"RandomMaterial"
,
b""
);
<
Runtime
as
frame_system
::
Config
>
::
DbWeight
::
get
()
.writes
(
1
)
}
}
#[cfg(not(feature
=
"disable-runtime-api"
))]
sp_api
::
impl_runtime_apis!
{
impl
sp_api
::
Core
<
Block
>
for
Runtime
{
...
...
runtime/westend/src/lib.rs
View file @
88db2d85
...
...
@@ -1068,7 +1068,7 @@ pub type Executive = frame_executive::Executive<
frame_system
::
ChainContext
<
Runtime
>
,
Runtime
,
AllPallets
,
(
RemoveCollectiveFlip
,
MigratePalletVersionToStorageVersion
)
,
MigratePalletVersionToStorageVersion
,
>
;
/// The payload being signed in transactions.
pub
type
SignedPayload
=
generic
::
SignedPayload
<
Call
,
SignedExtra
>
;
...
...
@@ -1084,16 +1084,6 @@ impl OnRuntimeUpgrade for MigratePalletVersionToStorageVersion {
}
}
pub
struct
RemoveCollectiveFlip
;
impl
frame_support
::
traits
::
OnRuntimeUpgrade
for
RemoveCollectiveFlip
{
fn
on_runtime_upgrade
()
->
Weight
{
use
frame_support
::
storage
::
migration
;
// Remove the storage value `RandomMaterial` from removed pallet `RandomnessCollectiveFlip`
migration
::
remove_storage_prefix
(
b"RandomnessCollectiveFlip"
,
b"RandomMaterial"
,
b""
);
<
Runtime
as
frame_system
::
Config
>
::
DbWeight
::
get
()
.writes
(
1
)
}
}
#[cfg(not(feature
=
"disable-runtime-api"
))]
sp_api
::
impl_runtime_apis!
{
impl
sp_api
::
Core
<
Block
>
for
Runtime
{
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment