mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 13:57:58 +00:00
Moved DigestItem impl to impl_outer_log (#932)
* moved DigestItem impl to impl_outer_log * Enable backtrace collecting on the CI * internal module is not required in impl_outer_log * Revert "internal module is not required in impl_outer_log" This reverts commit 5430446971cdf5fd5735863b86cd08a11d35d1dd. * Revert "moved DigestItem impl to impl_outer_log" This reverts commit 8872bbee963dbb4316251222f5c0757303fb3f52. * Revert "Revert "moved DigestItem impl to impl_outer_log"" This reverts commit 47afd59682f8828665bd9cfb293b40ce4c4787af. * Revert "Revert "internal module is not required in impl_outer_log"" This reverts commit 9ae640010c00ef134099d5b6a4430d330be134b2. * More diagnostics * check if only 1 test fails * test is back + some "traces" * removed some traces * removed "traces"
This commit is contained in:
committed by
Gav Wood
parent
2604474880
commit
ca38fd72f6
@@ -40,7 +40,6 @@ extern crate substrate_primitives;
|
||||
#[macro_use]
|
||||
extern crate parity_codec_derive;
|
||||
|
||||
#[cfg_attr(not(feature = "std"), macro_use)]
|
||||
extern crate sr_std as rstd;
|
||||
extern crate srml_balances as balances;
|
||||
extern crate srml_consensus as consensus;
|
||||
@@ -67,7 +66,7 @@ use runtime_api::runtime::*;
|
||||
use runtime_primitives::ApplyResult;
|
||||
use runtime_primitives::transaction_validity::TransactionValidity;
|
||||
use runtime_primitives::generic;
|
||||
use runtime_primitives::traits::{Convert, BlakeTwo256, DigestItem, Block as BlockT};
|
||||
use runtime_primitives::traits::{Convert, BlakeTwo256, Block as BlockT};
|
||||
use version::{RuntimeVersion, ApiId};
|
||||
use council::{motions as council_motions, voting as council_voting};
|
||||
#[cfg(feature = "std")]
|
||||
@@ -192,25 +191,6 @@ impl contract::Trait for Runtime {
|
||||
type Event = Event;
|
||||
}
|
||||
|
||||
impl DigestItem for Log {
|
||||
type Hash = Hash;
|
||||
type AuthorityId = SessionKey;
|
||||
|
||||
fn as_authorities_change(&self) -> Option<&[Self::AuthorityId]> {
|
||||
match self.0 {
|
||||
InternalLog::consensus(ref item) => item.as_authorities_change(),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
fn as_changes_trie_root(&self) -> Option<&Self::Hash> {
|
||||
match self.0 {
|
||||
InternalLog::system(ref item) => item.as_changes_trie_root(),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
construct_runtime!(
|
||||
pub enum Runtime with Log(InternalLog: DigestItem<Hash, SessionKey>) where
|
||||
Block = Block,
|
||||
|
||||
Reference in New Issue
Block a user