calc_new_score can be private

This commit is contained in:
junderw 2023-06-25 16:16:24 -07:00 committed by Mononaut
parent 2dfef5a003
commit 1ed0f86ed9
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E

View File

@ -95,7 +95,7 @@ impl AuditTransaction {
/// Safety: This function must NEVER set score to NaN. /// Safety: This function must NEVER set score to NaN.
#[inline] #[inline]
pub fn calc_new_score(&mut self) { fn calc_new_score(&mut self) {
self.score = (self.ancestor_fee as f64) self.score = (self.ancestor_fee as f64)
/ (if self.ancestor_weight == 0 { / (if self.ancestor_weight == 0 {
1.0 1.0