Unverified Commit 0036363c authored by Jon Häggblad's avatar Jon Häggblad Committed by GitHub
Browse files

Polkadot companion for Substrate PR #7640 (Store multiple Justifications per block) (#2358)



* service: update for substrate PR #7640

* update substrate

* Add Pallet Babe to Integration Tests Runtime

Co-authored-by: default avatarAndré Silva <andrerfosilva@gmail.com>
Co-authored-by: Shawn Tabrizi's avatarShawn Tabrizi <shawntabrizi@gmail.com>
parent 1379cfd4
Pipeline #129167 passed with stages
in 23 minutes and 16 seconds
This diff is collapsed.
......@@ -20,7 +20,7 @@ use std::sync::Arc;
use sp_api::{ProvideRuntimeApi, CallApiAt, NumberFor};
use sp_blockchain::HeaderBackend;
use sp_runtime::{
Justification, generic::{BlockId, SignedBlock}, traits::{Block as BlockT, BlakeTwo256},
Justifications, generic::{BlockId, SignedBlock}, traits::{Block as BlockT, BlakeTwo256},
};
use sc_client_api::{Backend as BackendT, BlockchainEvents, KeyIterator};
use sp_storage::{StorageData, StorageKey, ChildInfo, PrefixedStorageKey};
......@@ -204,15 +204,15 @@ impl sc_client_api::BlockBackend<Block> for Client {
}
}
fn justification(
fn justifications(
&self,
id: &BlockId<Block>
) -> sp_blockchain::Result<Option<Justification>> {
) -> sp_blockchain::Result<Option<Justifications>> {
match self {
Self::Polkadot(client) => client.justification(id),
Self::Westend(client) => client.justification(id),
Self::Kusama(client) => client.justification(id),
Self::Rococo(client) => client.justification(id),
Self::Polkadot(client) => client.justifications(id),
Self::Westend(client) => client.justifications(id),
Self::Kusama(client) => client.justifications(id),
Self::Rococo(client) => client.justifications(id),
}
}
......
......@@ -61,6 +61,7 @@ frame_support::construct_runtime!(
// System Stuff
System: frame_system::{Module, Call, Config, Storage, Event<T>},
Balances: pallet_balances::{Module, Call, Storage, Config<T>, Event<T>},
Babe: pallet_babe::{Module, Call, Storage, Config, ValidateUnsigned},
// Parachains Runtime
Configuration: configuration::{Module, Call, Storage, Config<T>},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment