Skip to content

Commit 58bdd33

Browse files
committed
f keep updating history bucket update time in the right place
1 parent be142a5 commit 58bdd33

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lightning/src/routing/scoring.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,6 +1339,7 @@ impl<L: DerefMut<Target = u64>, BRT: DerefMut<Target = HistoricalBucketRangeTrac
13391339
self.liquidity_history.max_liquidity_offset_history.track_datapoint(
13401340
max_liquidity_offset_msat.saturating_sub(bucket_offset_msat), self.capacity_msat
13411341
);
1342+
*self.offset_history_last_updated = self.now;
13421343
}
13431344

13441345
/// Adjusts the lower bound of the channel liquidity balance in this direction.
@@ -1350,7 +1351,6 @@ impl<L: DerefMut<Target = u64>, BRT: DerefMut<Target = HistoricalBucketRangeTrac
13501351
self.decayed_offset_msat(*self.max_liquidity_offset_msat)
13511352
};
13521353
*self.last_updated = self.now;
1353-
*self.offset_history_last_updated = self.now;
13541354
}
13551355

13561356
/// Adjusts the upper bound of the channel liquidity balance in this direction.
@@ -1362,7 +1362,6 @@ impl<L: DerefMut<Target = u64>, BRT: DerefMut<Target = HistoricalBucketRangeTrac
13621362
self.decayed_offset_msat(*self.min_liquidity_offset_msat)
13631363
};
13641364
*self.last_updated = self.now;
1365-
*self.offset_history_last_updated = self.now;
13661365
}
13671366
}
13681367

0 commit comments

Comments
 (0)