mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 08:51:08 +03:00
cleanup validate() no need to return kernel sums (#3456)
This commit is contained in:
parent
0aec8b533b
commit
cc4e608d1b
1 changed files with 3 additions and 3 deletions
|
@ -739,7 +739,7 @@ impl Block {
|
|||
&self,
|
||||
prev_kernel_offset: &BlindingFactor,
|
||||
verifier: Arc<RwLock<dyn VerifierCache>>,
|
||||
) -> Result<Commitment, Error> {
|
||||
) -> Result<(), Error> {
|
||||
self.body.validate(Weighting::AsBlock, verifier)?;
|
||||
|
||||
self.verify_kernel_lock_heights()?;
|
||||
|
@ -748,12 +748,12 @@ impl Block {
|
|||
|
||||
// take the kernel offset for this block (block offset minus previous) and
|
||||
// verify.body.outputs and kernel sums
|
||||
let (_utxo_sum, kernel_sum) = self.verify_kernel_sums(
|
||||
self.verify_kernel_sums(
|
||||
self.header.overage(),
|
||||
self.block_kernel_offset(prev_kernel_offset.clone())?,
|
||||
)?;
|
||||
|
||||
Ok(kernel_sum)
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Validate the coinbase.body.outputs generated by miners.
|
||||
|
|
Loading…
Reference in a new issue