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 1048e4d..fbb7737 100644 --- a/names/server.js +++ b/names/server.js @@ -853,7 +853,11 @@ async function retryTick() { if (!q.length) return; const still = []; for (const p of q) { - if (p.next && Date.now() < p.next) { still.push(p); continue; } + // A top-up that "didn't settle" in its 60 s window can land later (two + // did, 2026-10-22, once the ASP's pool refilled), and nothing resets the + // backoff then: a payment the float can now cover goes now. + const floatCovers = !p.foreign && fwd.balance().spendableSat >= p.sat; + if (p.next && Date.now() < p.next && !floatCovers) { still.push(p); continue; } try { await forward(p.name, p.sat, p.hash, p.pubkey); } catch (e) { log(`forward retry failed for ${p.name} (${p.sat} sat, try ${(p.tries || 0) + 1}): ${e.message}`); |
