mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 19:17:58 +00:00
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:
@@ -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.",
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user