Add correction the last commit missed

This commit is contained in:
Luke Parker 2023-04-13 18:47:31 -04:00
parent e73a51bfa5
commit 8b1bce6abd
No known key found for this signature in database

View file

@ -287,7 +287,7 @@ impl<T: Transaction, P: P2p> NetworkTrait for Network<T, P> {
panic!("validators added invalid block to tributary {}", hex::encode(self.genesis)); panic!("validators added invalid block to tributary {}", hex::encode(self.genesis));
}; };
assert!(self.verify_commit(block.id(), commit)); assert!(self.verify_commit(block.id(), &commit));
let Ok(block) = Block::read::<&[u8]>(&mut block.0.as_ref()) else { let Ok(block) = Block::read::<&[u8]>(&mut block.0.as_ref()) else {
return invalid_block(); return invalid_block();