diff options
| author | Adam Soltys <[email protected]> | 2024-09-08 22:13:49 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-09-08 22:13:49 -0700 |
| commit | 9473aad794f36a5ce41909f64a9acf4e082466ad (patch) | |
| tree | e8f7cbc1fadb8010c01bb93b77cfa533bc25cdac /lib/payments.ts | |
| parent | 5c105c8f4738ab1ead3c5b92f465f899cf0a7446 (diff) | |
| download | coinos-server-9473aad794f36a5ce41909f64a9acf4e082466ad.tar.gz coinos-server-9473aad794f36a5ce41909f64a9acf4e082466ad.zip | |
package rpc
Diffstat (limited to 'lib/payments.ts')
| -rw-r--r-- | lib/payments.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/payments.ts b/lib/payments.ts index 36f18e71..bfbb457c 100644 --- a/lib/payments.ts +++ b/lib/payments.ts @@ -22,7 +22,7 @@ import { mqtt1, mqtt2 } from "$lib/mqtt"; import { mail, templates } from "$lib/mail"; import api from "$lib/api"; import { bech32 } from "bech32"; -import rpc from "$lib/rpc"; +import rpc from "@coinos/rpc"; import lq_ from "$lib/liquid"; import bc_ from "$lib/bitcoin"; @@ -670,7 +670,7 @@ export let catchUp = async () => { let txns = []; for (let [type, n] of Object.entries({ bitcoin: bc, liquid: lq })) { txns.push( - ...(await n.listTransactions("*", 200)).filter((tx) => { + ...(await n.listTransactions("*", 10)).filter((tx) => { tx.type = type; return tx.category === "receive" && tx.confirmations > 0; }), @@ -695,5 +695,5 @@ export let catchUp = async () => { err("problem syncing", e.message); } - setTimeout(catchUp, 2000); + setTimeout(catchUp, 10000); }; |
