calc_new_score can be private

This commit is contained in:
junderw 2023-06-25 16:16:24 -07:00 committed by Mononaut
parent 0c22542dbc
commit 711ef6425e

View File

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