From 5e89bc43ae8b9f395368f8f48c544161fef0dca8 Mon Sep 17 00:00:00 2001 From: Philipp Walter Date: Mon, 13 Jan 2025 15:25:22 +0100 Subject: [PATCH] chore(settings): update default RGS host (#2429) --- src/store/index.ts | 2 +- src/store/migrations/index.ts | 9 +++++++++ src/store/shapes/settings.ts | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/store/index.ts b/src/store/index.ts index 8ecd5886d..59c601d68 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -32,7 +32,7 @@ const persistConfig = { key: 'root', storage: reduxStorage, // increase version after store shape changes - version: 50, + version: 51, stateReconciler: autoMergeLevel2, blacklist: ['receive', 'ui'], migrate: createMigrate(migrations, { debug: __ENABLE_MIGRATION_DEBUG__ }), diff --git a/src/store/migrations/index.ts b/src/store/migrations/index.ts index 9861585e5..14bcf3edc 100644 --- a/src/store/migrations/index.ts +++ b/src/store/migrations/index.ts @@ -93,6 +93,15 @@ const migrations = { }, }; }, + 51: (state): PersistedState => { + return { + ...state, + settings: { + ...state.settings, + rapidGossipSyncUrl: 'https://rgs.blocktank.to/snapshot/', + }, + }; + }, }; export default migrations; diff --git a/src/store/shapes/settings.ts b/src/store/shapes/settings.ts index 044de44f7..9a1b8c8dc 100644 --- a/src/store/shapes/settings.ts +++ b/src/store/shapes/settings.ts @@ -90,7 +90,7 @@ export const initialSettingsState: TSettings = { selectedCurrency: 'USD', selectedLanguage: 'english', customElectrumPeers: defaultElectrumPeer, - rapidGossipSyncUrl: 'https://rapidsync.lightningdevkit.org/snapshot/', + rapidGossipSyncUrl: 'https://rgs.blocktank.to/snapshot/', coinSelectAuto: true, coinSelectPreference: 'small', receivePreference: defaultReceivePreference,