calc_new_score can be private

This commit is contained in:
junderw authored and Mononaut committed 2023-07-03 10:18:18 -04:00
1 parent 0c22542dbc
commit 711ef6425e
1 file changed
+1 -1
+1 -1
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