mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 22:11:06 +00:00
Kill the light client, CHTs and change tries. (#10080)
* Remove light client, change tries and CHTs * Update tests * fmt * Restore changes_root * Fixed benches * Cargo fmt * fmt * fmt
This commit is contained in:
@@ -25,7 +25,6 @@ use crate::AURA_ENGINE_ID;
|
||||
use codec::{Codec, Encode};
|
||||
use sp_consensus_slots::Slot;
|
||||
use sp_runtime::generic::DigestItem;
|
||||
use sp_std::fmt::Debug;
|
||||
|
||||
/// A digest item which is usable with aura consensus.
|
||||
pub trait CompatibleDigestItem<Signature>: Sized {
|
||||
@@ -42,10 +41,9 @@ pub trait CompatibleDigestItem<Signature>: Sized {
|
||||
fn as_aura_pre_digest(&self) -> Option<Slot>;
|
||||
}
|
||||
|
||||
impl<Signature, Hash> CompatibleDigestItem<Signature> for DigestItem<Hash>
|
||||
impl<Signature> CompatibleDigestItem<Signature> for DigestItem
|
||||
where
|
||||
Signature: Codec,
|
||||
Hash: Debug + Send + Sync + Eq + Clone + Codec + 'static,
|
||||
{
|
||||
fn aura_seal(signature: Signature) -> Self {
|
||||
DigestItem::Seal(AURA_ENGINE_ID, signature.encode())
|
||||
|
||||
@@ -21,7 +21,7 @@ use super::{
|
||||
AllowedSlots, AuthorityId, AuthorityIndex, AuthoritySignature, BabeAuthorityWeight,
|
||||
BabeEpochConfiguration, Slot, BABE_ENGINE_ID,
|
||||
};
|
||||
use codec::{Codec, Decode, Encode, MaxEncodedLen};
|
||||
use codec::{Decode, Encode, MaxEncodedLen};
|
||||
use sp_runtime::{DigestItem, RuntimeDebug};
|
||||
use sp_std::vec::Vec;
|
||||
|
||||
@@ -177,10 +177,7 @@ pub trait CompatibleDigestItem: Sized {
|
||||
fn as_next_config_descriptor(&self) -> Option<NextConfigDescriptor>;
|
||||
}
|
||||
|
||||
impl<Hash> CompatibleDigestItem for DigestItem<Hash>
|
||||
where
|
||||
Hash: Send + Sync + Eq + Clone + Codec + 'static,
|
||||
{
|
||||
impl CompatibleDigestItem for DigestItem {
|
||||
fn babe_pre_digest(digest: PreDigest) -> Self {
|
||||
DigestItem::PreRuntime(BABE_ENGINE_ID, digest.encode())
|
||||
}
|
||||
|
||||
@@ -26,7 +26,8 @@ use std::{sync::Arc, time::Duration};
|
||||
use futures::prelude::*;
|
||||
use sp_runtime::{
|
||||
generic::BlockId,
|
||||
traits::{Block as BlockT, DigestFor, HashFor, NumberFor},
|
||||
traits::{Block as BlockT, HashFor},
|
||||
Digest,
|
||||
};
|
||||
use sp_state_machine::StorageProof;
|
||||
|
||||
@@ -111,8 +112,7 @@ pub struct Proposal<Block: BlockT, Transaction, Proof> {
|
||||
/// Proof that was recorded while building the block.
|
||||
pub proof: Proof,
|
||||
/// The storage changes while building this block.
|
||||
pub storage_changes:
|
||||
sp_state_machine::StorageChanges<Transaction, HashFor<Block>, NumberFor<Block>>,
|
||||
pub storage_changes: sp_state_machine::StorageChanges<Transaction, HashFor<Block>>,
|
||||
}
|
||||
|
||||
/// Error that is returned when [`ProofRecording`] requested to record a proof,
|
||||
@@ -224,7 +224,7 @@ pub trait Proposer<B: BlockT> {
|
||||
fn propose(
|
||||
self,
|
||||
inherent_data: InherentData,
|
||||
inherent_digests: DigestFor<B>,
|
||||
inherent_digests: Digest,
|
||||
max_duration: Duration,
|
||||
block_size_limit: Option<usize>,
|
||||
) -> Self::Proposal;
|
||||
|
||||
Reference in New Issue
Block a user