loop/staticaddr
Boris Nagaev 8d6df2bf20
staticaddr: use dp autoloop selector
Replace the recursive full-deposit autoloop selector with a bounded-memory
DP implementation in staticaddr/loopin/autoloop_dp.go. The new selector
keeps the existing no-change semantics, first finds the best reachable
total, then applies the 25 percent band rule so earlier-expiring deposits
can win inside that near-optimal range.

The DP table is capped at 128 MiB and keeps exact satoshi sums alongside
compressed bucket weights, so planning stays memory-bounded without
allowing oversized candidates. The compressed weighting now rounds down
with a minimum of one bucket, which avoids rejecting valid sums after
multiple per-deposit rounding steps while leaving the exact-sum check
as the real safety boundary.
2026-05-22 02:20:36 -05:00
..
address Merge pull request #1133 from 0xfandom/refactor/1056-move-parameters-to-script 2026-05-20 22:02:57 +02:00
deposit staticaddr: move address.Parameters to script package 2026-05-01 15:54:37 +05:30
loopin staticaddr: use dp autoloop selector 2026-05-22 02:20:36 -05:00
openchannel lint: fix linter issues 2026-03-09 14:39:45 +01:00
script staticaddr: move address.Parameters to script package 2026-05-01 15:54:37 +05:30
staticutil staticaddr: move address.Parameters to script package 2026-05-01 15:54:37 +05:30
version multi: do not rename swapserverrpc to looprpc 2024-09-10 09:54:17 -03:00
withdraw staticaddr: move address.Parameters to script package 2026-05-01 15:54:37 +05:30
log.go staticaddr: open channel manager 2026-02-26 20:57:26 +01:00