mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-20 23:21:02 +00:00
Remove light client companion (#4191)
* Remove light client companion * Update substrate * cargo fmt * Fixed benches * fmt
This commit is contained in:
@@ -1188,8 +1188,8 @@ pub enum ConsensusLog {
|
||||
|
||||
impl ConsensusLog {
|
||||
/// Attempt to convert a reference to a generic digest item into a consensus log.
|
||||
pub fn from_digest_item<H>(
|
||||
digest_item: &runtime_primitives::DigestItem<H>,
|
||||
pub fn from_digest_item(
|
||||
digest_item: &runtime_primitives::DigestItem,
|
||||
) -> Result<Option<Self>, parity_scale_codec::Error> {
|
||||
match digest_item {
|
||||
runtime_primitives::DigestItem::Consensus(id, encoded) if id == &POLKADOT_ENGINE_ID =>
|
||||
@@ -1199,8 +1199,8 @@ impl ConsensusLog {
|
||||
}
|
||||
}
|
||||
|
||||
impl<H> From<ConsensusLog> for runtime_primitives::DigestItem<H> {
|
||||
fn from(c: ConsensusLog) -> runtime_primitives::DigestItem<H> {
|
||||
impl From<ConsensusLog> for runtime_primitives::DigestItem {
|
||||
fn from(c: ConsensusLog) -> runtime_primitives::DigestItem {
|
||||
Self::Consensus(POLKADOT_ENGINE_ID, c.encode())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user