diff --git a/src/migration/app-migration.ts b/src/migration/app-migration.ts index fe202bcae..08f601778 100644 --- a/src/migration/app-migration.ts +++ b/src/migration/app-migration.ts @@ -352,4 +352,10 @@ export const appMigration: IAppMigration[] = [ } }, }, + // Version 40 + { + async beforeLnd(db, i) { + setItemObject(StorageItem.requireGraphSync, true); + }, + }, ]; diff --git a/src/state/Settings.ts b/src/state/Settings.ts index 4ea35d74a..087a60ff0 100644 --- a/src/state/Settings.ts +++ b/src/state/Settings.ts @@ -244,7 +244,7 @@ export const settings: ISettingsModel = { actions.setBitcoindPubRawBlock((await getItem(StorageItem.bitcoindPubRawBlock)) ?? ""); actions.setBitcoindPubRawTx((await getItem(StorageItem.bitcoindPubRawTx)) ?? ""); actions.setDunderServer((await getItem(StorageItem.dunderServer)) ?? ""); - actions.setRequireGraphSync((await getItemObject(StorageItem.requireGraphSync)) ?? false); + actions.setRequireGraphSync((await getItemObject(StorageItem.requireGraphSync)) ?? true); actions.setDunderEnabled((await getItemObject(StorageItem.dunderEnabled)) ?? true); actions.setLndNoGraphCache((await getItemObject(StorageItem.lndNoGraphCache)) ?? false); actions.setInvoiceExpiry( diff --git a/src/storage/app.ts b/src/storage/app.ts index 20e7d7152..82e88a3a8 100644 --- a/src/storage/app.ts +++ b/src/storage/app.ts @@ -263,7 +263,7 @@ export const setupApp = async () => { setItem(StorageItem.bitcoindPubRawBlock, bitcoindPubRawBlock), setItem(StorageItem.bitcoindPubRawTx, bitcoindPubRawTx), setItem(StorageItem.dunderServer, DEFAULT_DUNDER_SERVER), - setItemObject(StorageItem.requireGraphSync, false), + setItemObject(StorageItem.requireGraphSync, true), setItemObject(StorageItem.dunderEnabled, true), setItemObject(StorageItem.lndNoGraphCache, false), setItemObject(StorageItem.invoiceExpiry, DEFAULT_INVOICE_EXPIRY),