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,