Check block CLI command (#4240)

* Check block operation

* Update client/cli/src/lib.rs

* Update client/cli/src/params.rs
This commit is contained in:
Arkadiy Paronyan authored and Gavin Wood committed 2019-11-28 11:24:28 +00:00
1 parent f78b83e363
commit 504e2f8bd5
22 files changed
+543 -456

No files matched your search

@@ -662,6 +662,7 @@ impl<B: BlockT> ChainSync<B> {
justification: block_data.block.justification,
origin: block_data.origin,
allow_missing_state: false,
import_existing: false,
}
}).collect()
}
@@ -675,6 +676,7 @@ impl<B: BlockT> ChainSync<B> {
justification: b.justification,
origin: Some(who.clone()),
allow_missing_state: true,
import_existing: false,
}
}).collect()
}
@@ -41,6 +41,7 @@ fn prepare_good_block() -> (TestClient, Hash, u64, PeerId, IncomingBlock<Block>)
justification,
origin: Some(peer_id.clone()),
allow_missing_state: false,
import_existing: false,
})
}
+1
View File
@@ -99,6 +99,7 @@ impl<B: BlockT> Verifier<B> for PassThroughVerifier {
auxiliary: Vec::new(),
fork_choice: ForkChoiceStrategy::LongestChain,
allow_missing_state: false,
import_existing: false,
}, maybe_keys))
}
}