aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ark.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/ark.ts b/lib/ark.ts
index f4f6d70d..03f02412 100644
--- a/lib/ark.ts
+++ b/lib/ark.ts
@@ -185,8 +185,10 @@ export const refreshArkWallet = async (force = false) => {
};
// Initial check after 60s startup delay; retry every 60s to catch ark rounds
-setTimeout(refreshArkWallet, 60_000);
-setInterval(() => refreshArkWallet(), 60_000);
+if (config.ark?.arkPrivateKey) {
+ setTimeout(refreshArkWallet, 60_000);
+ setInterval(() => refreshArkWallet(), 60_000);
+}
export const sendArk = async (address: string, amount: number) => {