chore: regenerate umbrella crate, fix feature propagation
This commit is contained in:
@@ -34,9 +34,9 @@
|
||||
//! definition.
|
||||
|
||||
use alloc::{boxed::Box, vec, vec::Vec};
|
||||
use log::{error, info};
|
||||
use pezframe_support::traits::{Get, KeyOwnerProofSystem};
|
||||
use pezframe_system::pezpallet_prelude::HeaderFor;
|
||||
use log::{error, info};
|
||||
|
||||
use pezsp_consensus_babe::{AuthorityId, EquivocationProof, Slot, KEY_TYPE};
|
||||
use pezsp_runtime::{
|
||||
|
||||
@@ -279,7 +279,11 @@ pub fn make_secondary_vrf_pre_digest(
|
||||
vrf_signature: VrfSignature,
|
||||
) -> Digest {
|
||||
let digest_data = pezsp_consensus_babe::digests::PreDigest::SecondaryVRF(
|
||||
pezsp_consensus_babe::digests::SecondaryVRFPreDigest { authority_index, slot, vrf_signature },
|
||||
pezsp_consensus_babe::digests::SecondaryVRFPreDigest {
|
||||
authority_index,
|
||||
slot,
|
||||
vrf_signature,
|
||||
},
|
||||
);
|
||||
let log = DigestItem::PreRuntime(pezsp_consensus_babe::BABE_ENGINE_ID, digest_data.encode());
|
||||
Digest { logs: vec![log] }
|
||||
@@ -289,11 +293,15 @@ pub fn make_vrf_signature_and_randomness(
|
||||
slot: Slot,
|
||||
pair: &pezsp_consensus_babe::AuthorityPair,
|
||||
) -> (VrfSignature, Randomness) {
|
||||
let transcript =
|
||||
pezsp_consensus_babe::make_vrf_transcript(&pezpallet_babe::Randomness::<Test>::get(), slot, 0);
|
||||
let transcript = pezsp_consensus_babe::make_vrf_transcript(
|
||||
&pezpallet_babe::Randomness::<Test>::get(),
|
||||
slot,
|
||||
0,
|
||||
);
|
||||
|
||||
let randomness =
|
||||
pair.as_ref().make_bytes(pezsp_consensus_babe::RANDOMNESS_VRF_CONTEXT, &transcript);
|
||||
let randomness = pair
|
||||
.as_ref()
|
||||
.make_bytes(pezsp_consensus_babe::RANDOMNESS_VRF_CONTEXT, &transcript);
|
||||
|
||||
let signature = pair.as_ref().vrf_sign(&transcript.into());
|
||||
|
||||
|
||||
@@ -18,12 +18,12 @@
|
||||
//! Consensus extension module tests for BABE consensus.
|
||||
|
||||
use super::{Call, *};
|
||||
use mock::*;
|
||||
use pezframe_support::{
|
||||
assert_err, assert_noop, assert_ok,
|
||||
dispatch::{GetDispatchInfo, Pays},
|
||||
traits::{Currency, EstimateNextSessionRotation, KeyOwnerProofSystem, OnFinalize},
|
||||
};
|
||||
use mock::*;
|
||||
use pezpallet_session::ShouldEndSession;
|
||||
use pezsp_consensus_babe::{
|
||||
AllowedSlots, BabeEpochConfiguration, Slot, VrfSignature, RANDOMNESS_LENGTH,
|
||||
|
||||
Reference in New Issue
Block a user