.validate_pow(&self.header.target())
.or_else(|e| Err(BlockSourceError::persistent(e)))?;
+ // TODO: Use the result of validate_pow instead of recomputing the block hash once upstream.
if self.header.block_hash() != block_hash {
return Err(BlockSourceError::persistent("invalid block hash"));
}
.validate_pow(&self.header.target())
.or_else(|e| Err(BlockSourceError::persistent(e)))?;
+ // TODO: Use the result of validate_pow instead of recomputing the block hash once upstream.
if self.block_hash() != block_hash {
return Err(BlockSourceError::persistent("invalid block hash"));
}