Fix the browser node and ensure it doesn't colour the informant output (#6457)

* Fix browser informant

* Fix documentation

* Add an informant_output_format function to the cli config

* Wrap informant output format in an option

* Revert batch verifier

* Remove wasm-timer from primitives io cargo lock

* Drop informant_output_format function

* derive debug for output format
This commit is contained in:
Ashley
2020-06-23 16:50:33 +02:00
committed by GitHub
parent 6647a42a67
commit d976f712b1
10 changed files with 40 additions and 50 deletions
@@ -259,7 +259,7 @@ pub(crate) fn import_single_block_metered<B: BlockT, V: Verifier<B>, Transaction
r => return Ok(r), // Any other successful result means that the block is already imported.
}
let started = std::time::Instant::now();
let started = wasm_timer::Instant::now();
let (mut import_block, maybe_keys) = verifier.verify(block_origin, header, justification, block.body)
.map_err(|msg| {
if let Some(ref peer) = peer {
@@ -18,7 +18,8 @@
//! Tracks offline validators.
use std::collections::HashMap;
use std::time::{Instant, Duration};
use std::time::Duration;
use wasm_timer::Instant;
// time before we report a validator.
const REPORT_TIME: Duration = Duration::from_secs(60 * 5);