/// Calculate the sum of the kernels, taking into account the provided offset, and their constituent fees
Calculate the sum of the kernels, taking into account the provided offset, and their constituent fees
Calculate the sum of the kernels taking into account the provided offset and their constituent fees
fn sum_kernels(&self, offset_with_fee: PedersenCommitment) -> KernelSum {
        // Sum all kernel excesses and fees
        self.kernels.iter().fold(
            KernelSum {
                fees: MicroTari(0),
                sum: offset_with_fee,
            },
            |acc, val| KernelSum {
                fees: acc.fees + val.fee,
                sum: &acc.sum + &val.excess,
            },
        )
    }
fn sum_kernels ( & self , offset_with_fee : PedersenCommitment ) -> KernelSum { // Sum all kernel excesses and fees self . kernels . iter ( ) . fold ( KernelSum { fees : MicroTari ( 0 ) , sum : offset_with_fee , } , | acc , val | KernelSum { fees : acc . fees + val . fee , sum : & acc . sum + & val . excess , } , ) }
Calculate the sum of the kernels, taking into account the provided offset, and their constituent fees
Calculate the sum of the kernels taking into account the provided offset and their constituent fees
&self
offset_with_fee
PedersenCommitment