Skip to content

Commit

Permalink
Aura finalize (paritytech#695)
Browse files Browse the repository at this point in the history
* Update substrate

* Degrade structopt to 0.2.15

* Add finalize set

* Add SessionTotalMissedBlocksCount in xsession

* Utilize SessionTotalMissedBlocksCount in xgrandpa

* Update substrate

* Add warn log when failing to finalize

* Only run Grandpa Observer model
  • Loading branch information
liuchengxu authored and gguoss committed Jun 17, 2019
1 parent da9b6b0 commit 18e7e7e
Show file tree
Hide file tree
Showing 8 changed files with 650 additions and 611 deletions.
1,134 changes: 566 additions & 568 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ fn init_logger_log4rs(spec: &str, params: ChainXParams) -> Result<(), String> {
};

if params.log_size == 0 {
return Err("the `--log-size` can't be 0".to_string())
return Err("the `--log-size` can't be 0".to_string());
}

let trigger = trigger::size::SizeTrigger::new(1024 * 1024 * params.log_size);
Expand Down
8 changes: 8 additions & 0 deletions cli/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,13 @@ construct_service_factory! {
name: Some(service.config.name.clone())
};

executor.spawn(grandpa::run_grandpa_observer(
config,
link_half,
service.network(),
service.on_exit(),
)?);
/*
match config.local_key {
None => {
executor.spawn(grandpa::run_grandpa_observer(
Expand All @@ -207,6 +214,7 @@ construct_service_factory! {
executor.spawn(grandpa::run_grandpa_voter(grandpa_config)?);
},
}
*/

Ok(service)
}
Expand Down
62 changes: 31 additions & 31 deletions runtime/wasm/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion xrml/xbridge/sdot/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

#![cfg(test)]

use primitives::BuildStorage;
use primitives::testing::{Digest, DigestItem, Header};
use primitives::traits::{BlakeTwo256, IdentityLookup};
use primitives::BuildStorage;
use substrate_primitives::{Blake2Hasher, H256};
use support::impl_outer_origin;

Expand Down
Loading

0 comments on commit 18e7e7e

Please sign in to comment.