Adapt code to new sc-telemetry (#362)

This commit is contained in:
Cecile Tonglet
2021-03-11 13:45:02 +01:00
committed by GitHub
parent cb5a244f3d
commit a3d50f2dd7
9 changed files with 282 additions and 242 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ impl BlockAnnounceData {
///
/// This will not check the signature, for this you should use [`BlockAnnounceData::check_signature`].
fn validate(&self, encoded_header: Vec<u8>) -> Result<(), Validation> {
let candidate_hash = if let CompactStatement::Candidate(h) = self.statement.payload() {
let candidate_hash = if let CompactStatement::Seconded(h) = self.statement.payload() {
h
} else {
tracing::debug!(