Skip to content

Commit

Permalink
light-client: Restore Supervisor::report_evidence
Browse files Browse the repository at this point in the history
Keep it as a stub to avoid more extensive changes.
  • Loading branch information
mzabaluev committed Oct 25, 2022
1 parent 8847e73 commit 8dae679
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions light-client/src/supervisor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,21 @@ impl Supervisor {
Ok(forked)
}

/// Report the given evidence of a fork.
// TODO: rework to supply LightClientAttackEvidence data
fn report_evidence(
&mut self,
provider: PeerId,
_primary: &LightBlock,
_witness: &LightBlock,
) -> Result<(), Error> {
self.evidence_reporter
.report(Evidence::LightClientAttackEvidence, provider)
.map_err(Error::io)?;

Ok(())
}

/// Perform fork detection with the given verified block and trusted block.
fn detect_forks(
&self,
Expand Down

0 comments on commit 8dae679

Please sign in to comment.