mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 03:27:58 +00:00
Refactor epoch changes to a separate crate (#4785)
* Init epoch changes module * Initial integration of new epoch changes module for BABE * Fix all initial compile errors * rename: digest -> digests * Fix babe tests * Bump impl_version * Fix more test issues * Remove test flag for tree It unfortunately won't work for multiple crates. * Update cargo lock * Fix duplicate parking_lot version * Add missing license header
This commit is contained in:
@@ -34,7 +34,7 @@ fn make_pre_digest(
|
||||
vrf_output: [u8; sp_consensus_babe::VRF_OUTPUT_LENGTH],
|
||||
vrf_proof: [u8; sp_consensus_babe::VRF_PROOF_LENGTH],
|
||||
) -> Digest {
|
||||
let digest_data = sp_consensus_babe::RawBabePreDigest::Primary {
|
||||
let digest_data = sp_consensus_babe::digests::RawPreDigest::Primary {
|
||||
authority_index,
|
||||
slot_number,
|
||||
vrf_output,
|
||||
@@ -110,7 +110,7 @@ fn first_block_epoch_zero_start() {
|
||||
|
||||
let authorities = Babe::authorities();
|
||||
let consensus_log = sp_consensus_babe::ConsensusLog::NextEpochData(
|
||||
sp_consensus_babe::NextEpochDescriptor {
|
||||
sp_consensus_babe::digests::NextEpochDescriptor {
|
||||
authorities,
|
||||
randomness: Babe::randomness(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user