/// Returns the sum of all kernels
Returns the sum of all kernels
Returns the sum of all kernels
pub fn fetch_kernel_commitment_sum(&self) -> Result<Commitment, ChainStorageError> {
        let db = self.db_read_access()?;
        let mut sum = Commitment::from_public_key(&PublicKey::default());
        db.for_each_kernel(|kernel| {
            if let Ok((_, kernel)) = kernel {
                sum = &sum + &kernel.excess
            }
        })?;
        Ok(sum)
    }
pub fn fetch_kernel_commitment_sum ( & self ) -> Result < Commitment , ChainStorageError > { let db = self . db_read_access ( ) ? ; let mut sum = Commitment :: from_public_key ( & PublicKey :: default ( ) ) ; db . for_each_kernel ( | kernel | { if let Ok ( ( _ , kernel ) ) = kernel { sum = & sum + & kernel . excess } } ) ? ; Ok ( sum ) }
Returns the sum of all kernels
Returns the sum of all kernels
&self