checking for signals in the light client

This commit is contained in:
Robert Habermeier
2017-08-03 18:18:19 +02:00
parent 2bd5c3dba7
commit 0abf2abc81
5 changed files with 190 additions and 21 deletions

View File

@@ -666,6 +666,8 @@ impl Engine for AuthorityRound {
(&active_set as &_, epoch_manager.epoch_transition_number)
};
// always report with "self.validators" so that the report actually gets
// to the contract.
let report = |report| match report {
Report::Benign(address, block_number) =>
self.validators.report_benign(&address, set_number, block_number),

View File

@@ -132,7 +132,7 @@ pub trait StateDependentProof {
/// Proof generated on epoch change.
pub enum Proof {
/// Known proof (exctracted from signal)
/// Known proof (extracted from signal)
Known(Vec<u8>),
/// State dependent proof.
WithState(Box<StateDependentProof>),