Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master' into digest_items
  • Loading branch information
svyatonik committed Sep 5, 2018
commit 6e185c40dc93fd9c57c1095a864e00ee4e0f2592
4 changes: 2 additions & 2 deletions demo/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ extern crate demo_primitives;

use demo_primitives::{AccountId, AccountIndex, Balance, BlockNumber, Hash, Index, SessionKey, Signature};
use runtime_primitives::generic;
use runtime_primitives::traits::{Convert, HasPublicAux, BlakeTwo256, DigestItem};
use runtime_primitives::traits::{Convert, BlakeTwo256, DigestItem};
use version::RuntimeVersion;

#[cfg(any(feature = "std", test))]
Expand Down Expand Up @@ -174,7 +174,7 @@ impl_outer_event! {
}

impl_outer_log! {
pub enum Log for Concrete {
pub enum Log for Runtime {
consensus
}
}
Expand Down
Binary file not shown.
Binary file not shown.
6 changes: 3 additions & 3 deletions substrate/runtime/consensus/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ use runtime_support::{storage, Parameter};
use runtime_support::dispatch::Result;
use runtime_support::storage::StorageValue;
use runtime_support::storage::unhashed::StorageVec;
use primitives::traits::{MaybeSerializeDebug, MaybeEmpty, Executable, Member, AuthoritiesChangeDigest};
use primitives::traits::{MaybeSerializeDebug, MaybeEmpty, OnFinalise, Member, AuthoritiesChangeDigest};
use primitives::bft::MisbehaviorReport;

#[cfg(any(feature = "std", test))]
Expand Down Expand Up @@ -239,8 +239,8 @@ impl<T: Trait> Module<T> {
}

/// Finalization hook for the consensus module.
impl<T: Trait> Executable for Module<T> {
fn execute() {
impl<T: Trait> OnFinalise<T::BlockNumber> for Module<T> {
fn on_finalise(_n: T::BlockNumber) {
if let Some(_) = <OriginalAuthorities<T>>::take() {
// TODO: call Self::deposit_log
}
Expand Down
Binary file not shown.
Binary file not shown.
You are viewing a condensed version of this merge commit. You can view the full changes here.