diff options
| author | Adam Soltys <[email protected]> | 2026-02-04 23:13:33 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-06 09:00:09 -0800 |
| commit | 1ebc40afc14a75d7fe157b2c6c20ffea9dedb5eb (patch) | |
| tree | 960318969072afa63536e9429c27fa40ca2919d3 /index.ts | |
| parent | c0481268da25eed1f25281508b5c4777d26c2b03 (diff) | |
| download | coinos-server-1ebc40afc14a75d7fe157b2c6c20ffea9dedb5eb.tar.gz coinos-server-1ebc40afc14a75d7fe157b2c6c20ffea9dedb5eb.zip | |
tigerbeetle
Diffstat (limited to 'index.ts')
| -rw-r--r-- | index.ts | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -4,11 +4,12 @@ import { admin, auth, optional } from "$lib/auth"; import { fixBolt12, listenForLightning, replay } from "$lib/lightning"; import { startHealthCheck } from "$lib/health"; import { getLocations } from "$lib/locations"; -import { migrateAccounts } from "$lib/migrate"; +import { migrateAccounts, migrateBalancesToTB } from "$lib/migrate"; import nwc from "$lib/nwc"; import { check } from "$lib/payments"; import { getFx } from "$lib/rates"; import { sendHeartbeat } from "$lib/sockets"; +import { initTigerBeetle } from "$lib/tb"; import { startZmq } from "$lib/zmq"; import ecash from "$routes/ecash"; @@ -26,6 +27,7 @@ import square from "$routes/square"; import users from "$routes/users"; try { + await initTigerBeetle(); getLocations(); getFx(); nwc(); @@ -33,6 +35,7 @@ try { startHealthCheck(); startZmq(); migrateAccounts().then((n) => n && console.log(`Migrated ${n} accounts`)); + migrateBalancesToTB().then((n) => n && console.log(`Migrated ${n} balances to TB`)); } catch (e) { console.log(e); } |
