Remove pov hash comparison when waiting on a block to announce (#396)

* Remove pov hash comparison when waiting on a block to announce

Internally we get notified on the channel for our candidate anyway.
Besides that polkadot will compress the pov which leads to a different
pov hash and thus, would lead to a failing check on the `pov_hash`.

* Fix

* Fix tests
This commit is contained in:
Bastian Köcher
2021-04-12 19:26:55 +02:00
committed by GitHub
parent b35deaed95
commit aeb275d3a7
3 changed files with 14 additions and 24 deletions
+1 -3
View File
@@ -309,17 +309,15 @@ where
let block_hash = b.header().hash();
let collation = self.build_collation(b, block_hash, validation_data.relay_parent_number)?;
let pov_hash = collation.proof_of_validity.hash();
let (result_sender, signed_stmt_recv) = oneshot::channel();
self.wait_to_announce
.lock()
.wait_to_announce(block_hash, pov_hash, signed_stmt_recv);
.wait_to_announce(block_hash, signed_stmt_recv);
tracing::info!(
target: LOG_TARGET,
pov_hash = ?pov_hash,
?block_hash,
"Produced proof-of-validity candidate.",
);