Skip to content

Commit fe45095

Browse files
authored
Merge pull request #3610 from TheBlueMatt/2025-02-fix-0.1-android-32-bit
[0.1] Stop checking `ChannelLiquidity`'s in-memory size
2 parents 940ca49 + 2c2decf commit fe45095

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lightning/src/routing/scoring.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -821,16 +821,6 @@ struct ChannelLiquidity {
821821
offset_history_last_updated: Duration,
822822
}
823823

824-
// Check that the liquidity HashMap's entries sit on round cache lines.
825-
//
826-
// Specifically, the first cache line will have the key, the liquidity offsets, and the total
827-
// points tracked in the historical tracker.
828-
//
829-
// The next two cache lines will have the historical points, which we only access last during
830-
// scoring, followed by the last_updated `Duration`s (which we do not need during scoring).
831-
const _LIQUIDITY_MAP_SIZING_CHECK: usize = 192 - ::core::mem::size_of::<(u64, ChannelLiquidity)>();
832-
const _LIQUIDITY_MAP_SIZING_CHECK_2: usize = ::core::mem::size_of::<(u64, ChannelLiquidity)>() - 192;
833-
834824
/// A snapshot of [`ChannelLiquidity`] in one direction assuming a certain channel capacity.
835825
struct DirectedChannelLiquidity<L: Deref<Target = u64>, HT: Deref<Target = HistoricalLiquidityTracker>, T: Deref<Target = Duration>> {
836826
min_liquidity_offset_msat: L,

0 commit comments

Comments
 (0)