diff options
| -rw-r--r-- | names/server.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/names/server.js b/names/server.js index 6bbec01..600b12a 100644 --- a/names/server.js +++ b/names/server.js @@ -1035,9 +1035,13 @@ async function consolidateFloat() { if ((fwd.state.actions || []).some((a) => !['done', 'failed'].includes(a.step))) return; const small = (await smallCoins()).slice(0, CONSOLIDATE_MAX); if (small.length < 2) return; + const sat = small.reduce((n, v) => n + v.amountSat, 0); + // a heap of dust can't pay for its own round (64 coins, 259 sat, 301 sat + // fee, 2026-11-24 — refused every minute once upkeep ran again); sends + // gather largest-first, so dust never decides whether one fits anyway + if (sat - fwd.refreshFee(small, await fwd.chain.tipHeight()) < 330) return; consolidating = true; try { - const sat = small.reduce((n, v) => n + v.amountSat, 0); log(`float consolidate: merging ${small.length} coins (${sat} sat)`); await fwd.refresh(small.map((v) => v.id)); log(`float consolidate: submitted — it settles once the round confirms`); |
