From 9473aad794f36a5ce41909f64a9acf4e082466ad Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 8 Sep 2024 22:13:49 -0700 Subject: package rpc --- lib/payments.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/payments.ts') 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); }; -- cgit v1.2.3