aboutsummaryrefslogtreecommitdiffstats
path: root/lib/db.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-03-08 04:31:34 +0000
committerAdam Soltys <[email protected]>2024-03-08 04:31:34 +0000
commit972ea530e8139a0357b6b45ccdf9742d19ba6a26 (patch)
treeeb2774d174c12e7304694d1793811d0ae0abf685 /lib/db.js
parent2bd73639038bbc9cd4c75758eda685c89011231f (diff)
downloadcoinos-server-972ea530e8139a0357b6b45ccdf9742d19ba6a26.tar.gz
coinos-server-972ea530e8139a0357b6b45ccdf9742d19ba6a26.zip
validate tips
Diffstat (limited to 'lib/db.js')
-rw-r--r--lib/db.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/db.js b/lib/db.js
index 58472269..4f113a1d 100644
--- a/lib/db.js
+++ b/lib/db.js
@@ -48,6 +48,13 @@ export let archive = createClient({
},
});
+export let arc2 = createClient({
+ url: config.arc2,
+ socket: {
+ reconnectStrategy: (retries) => Math.min(retries * 50, 5000),
+ },
+});
+
async function dbReconnect() {
try {
await db.connect();