aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
Diffstat (limited to 'routes')
-rw-r--r--routes/payments.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/routes/payments.ts b/routes/payments.ts
index 011aabb4..ca68bcdf 100644
--- a/routes/payments.ts
+++ b/routes/payments.ts
@@ -594,7 +594,11 @@ export default {
try {
const node = rpc({ ...config[type], wallet });
const { confirmations, details } = await node.getTransaction(txid);
- const hot = wallet === config[type].wallet;
+ // A retired hot wallet still receives deposits to the addresses it handed
+ // out (2026-12-04: the "coinos" wallet's keys were stolen; "coinos2" took
+ // over and the old one is loaded as config.bitcoin.legacyWallets). Its
+ // deposits are credited like the hot wallet's, by invoice address.
+ const hot = wallet === config[type].wallet || (config[type].legacyWallets || []).includes(wallet);
let aid;
if (!hot) aid = wallet;