mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
Remove transient code after im-online pallet removal (#3383)
Removes transient code introduced to clean up offchain database after `im-online` pallet removal. Should be merged after #2290 has been enacted.
This commit is contained in:
@@ -1868,12 +1868,6 @@ sp_api::impl_runtime_apis! {
|
||||
|
||||
impl offchain_primitives::OffchainWorkerApi<Block> for Runtime {
|
||||
fn offchain_worker(header: &<Block as BlockT>::Header) {
|
||||
use sp_runtime::{traits::Header, DigestItem};
|
||||
|
||||
if header.digest().logs().iter().any(|di| di == &DigestItem::RuntimeEnvironmentUpdated) {
|
||||
pallet_im_online::migration::clear_offchain_storage(Session::validators().len() as u32);
|
||||
}
|
||||
|
||||
Executive::offchain_worker(header)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1931,12 +1931,6 @@ sp_api::impl_runtime_apis! {
|
||||
|
||||
impl offchain_primitives::OffchainWorkerApi<Block> for Runtime {
|
||||
fn offchain_worker(header: &<Block as BlockT>::Header) {
|
||||
use sp_runtime::{traits::Header, DigestItem};
|
||||
|
||||
if header.digest().logs().iter().any(|di| di == &DigestItem::RuntimeEnvironmentUpdated) {
|
||||
pallet_im_online::migration::clear_offchain_storage(Session::validators().len() as u32);
|
||||
}
|
||||
|
||||
Executive::offchain_worker(header)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user