@@ -659,8 +659,8 @@ impl pallet_beefy::Config for Runtime {
659
659
type MaxAuthorities = MaxValidators ;
660
660
type MaxNominators = ConstU32 < 0 > ;
661
661
type MaxSetIdSessionEntries = BeefySetIdSessionEntries ;
662
- type OnNewValidatorSet = MmrLeaf ;
663
- type AncestryHelper = MmrLeaf ;
662
+ type OnNewValidatorSet = BeefyMmrLeaf ;
663
+ type AncestryHelper = BeefyMmrLeaf ;
664
664
type WeightInfo = ( ) ;
665
665
type KeyOwnerProof = sp_session:: MembershipProof ;
666
666
// TODO: disabled equivocations, they require additional modules like Offences and full Session pallet
@@ -734,7 +734,7 @@ construct_runtime!(
734
734
Mmr : pallet_mmr,
735
735
// MMR leaf construction must be after session in order to have a leaf's next_auth_set
736
736
// refer to block<N>. See issue polkadot-fellows/runtimes#160 for details.
737
- MmrLeaf : pallet_beefy_mmr,
737
+ BeefyMmrLeaf : pallet_beefy_mmr,
738
738
TestHelperPallet : crate :: test_helper_pallet,
739
739
}
740
740
) ;
@@ -1048,7 +1048,7 @@ impl_runtime_apis! {
1048
1048
) -> Option <sp_runtime:: OpaqueValue > {
1049
1049
use sp_consensus_beefy:: AncestryHelper ;
1050
1050
1051
- MmrLeaf :: generate_proof( prev_block_number, best_known_block_number)
1051
+ BeefyMmrLeaf :: generate_proof( prev_block_number, best_known_block_number)
1052
1052
. map( |p| p. encode( ) )
1053
1053
. map( sp_runtime:: OpaqueValue :: new)
1054
1054
}
@@ -1104,6 +1104,16 @@ impl_runtime_apis! {
1104
1104
}
1105
1105
}
1106
1106
1107
+ impl pallet_beefy_mmr:: BeefyMmrApi <Block , Hash > for RuntimeApi {
1108
+ fn authority_set_proof( ) -> sp_consensus_beefy:: mmr:: BeefyAuthoritySet <Hash > {
1109
+ BeefyMmrLeaf :: authority_set_proof( )
1110
+ }
1111
+
1112
+ fn next_authority_set_proof( ) -> sp_consensus_beefy:: mmr:: BeefyNextAuthoritySet <Hash > {
1113
+ BeefyMmrLeaf :: next_authority_set_proof( )
1114
+ }
1115
+ }
1116
+
1107
1117
#[ cfg( feature = "runtime-benchmarks" ) ]
1108
1118
impl frame_benchmarking:: Benchmark <Block > for Runtime {
1109
1119
fn benchmark_metadata( extra: bool ) -> (
0 commit comments