From b795f25c5c75a3900ce9c1eabe1d09201f82406c Mon Sep 17 00:00:00 2001 From: Blake Byrnes Date: Wed, 9 Oct 2024 13:13:30 -0400 Subject: [PATCH] chore: add default genesis --- datastore/main/.env.defaults | 2 +- datastore/main/payments/LocalchainWithSync.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/datastore/main/.env.defaults b/datastore/main/.env.defaults index 5044fd5f..19d63fcd 100644 --- a/datastore/main/.env.defaults +++ b/datastore/main/.env.defaults @@ -1,5 +1,5 @@ ARGON_MAINCHAIN_URL= -ARGON_GENESIS_UTC_TIME= +ARGON_GENESIS_UTC_TIME=1,728,396,000,000 ARGON_TICK_DURATION_MILLIS=60000 ARGON_NTP_SERVER=#pool.ntp.org ARGON_CHANNEL_HOLD_EXPIRATION_TICKS=60 diff --git a/datastore/main/payments/LocalchainWithSync.ts b/datastore/main/payments/LocalchainWithSync.ts index 77b61e06..cfbc1bb1 100644 --- a/datastore/main/payments/LocalchainWithSync.ts +++ b/datastore/main/payments/LocalchainWithSync.ts @@ -186,6 +186,7 @@ export default class LocalchainWithSync } public async attachMainchain(mainchain: MainchainClient): Promise { + if (!this.#localchain) return; await this.#localchain.attachMainchain(mainchain); await this.#localchain.updateTicker(); this.mainchainLoaded.resolve();