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:
s0me0ne-unkn0wn
2024-03-29 10:12:40 +01:00
committed by GitHub
parent 30ef8651ed
commit b310b575cd
2 changed files with 0 additions and 12 deletions
-6
View File
@@ -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)
}
}
-6
View File
@@ -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)
}
}