mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 06:21:02 +00:00
only store header state root (pallet-bridge-grandpa) (#1699)
This commit is contained in:
committed by
Bastian Köcher
parent
b94bd8d46b
commit
7014046485
@@ -45,7 +45,7 @@ use sp_version::NativeVersion;
|
||||
use sp_version::RuntimeVersion;
|
||||
|
||||
// A few exports that help ease life for downstream crates.
|
||||
use bp_runtime::{HeaderId, HeaderIdProvider};
|
||||
use bp_runtime::HeaderId;
|
||||
pub use frame_support::{
|
||||
construct_runtime,
|
||||
dispatch::DispatchClass,
|
||||
@@ -525,8 +525,6 @@ parameter_types! {
|
||||
|
||||
/// Maximal number of authorities at Millau.
|
||||
pub const MaxAuthoritiesAtMillau: u32 = bp_millau::MAX_AUTHORITIES_COUNT;
|
||||
/// Maximal size of SCALE-encoded Millau header.
|
||||
pub const MaxMillauHeaderSize: u32 = bp_millau::MAX_HEADER_SIZE;
|
||||
}
|
||||
|
||||
pub type MillauGrandpaInstance = ();
|
||||
@@ -539,7 +537,6 @@ impl pallet_bridge_grandpa::Config for Runtime {
|
||||
type MaxRequests = ConstU32<50>;
|
||||
type HeadersToKeep = HeadersToKeep;
|
||||
type MaxBridgedAuthorities = MaxAuthoritiesAtMillau;
|
||||
type MaxBridgedHeaderSize = MaxMillauHeaderSize;
|
||||
type WeightInfo = pallet_bridge_grandpa::weights::BridgeWeight<Runtime>;
|
||||
}
|
||||
|
||||
@@ -728,7 +725,7 @@ impl_runtime_apis! {
|
||||
|
||||
impl bp_millau::MillauFinalityApi<Block> for Runtime {
|
||||
fn best_finalized() -> Option<HeaderId<bp_millau::Hash, bp_millau::BlockNumber>> {
|
||||
BridgeMillauGrandpa::best_finalized().map(|header| header.id())
|
||||
BridgeMillauGrandpa::best_finalized()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user