Adapt code to new sc-telemetry (#362)

This commit is contained in:
Cecile Tonglet authored and GitHub committed 2021-03-11 13:45:02 +01:00
1 parent 2b73fcf45d
commit 321b4434ac
9 files changed
+282 -242

No files matched your search

+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!(