Skip to content

Commit

Permalink
chore(settings): update default RGS host (#2429)
Browse files Browse the repository at this point in the history
  • Loading branch information
pwltr authored Jan 13, 2025
1 parent bf15597 commit 5e89bc4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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__ }),
Expand Down
9 changes: 9 additions & 0 deletions src/store/migrations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,15 @@ const migrations = {
},
};
},
51: (state): PersistedState => {
return {
...state,
settings: {
...state.settings,
rapidGossipSyncUrl: 'https://rgs.blocktank.to/snapshot/',
},
};
},
};

export default migrations;
2 changes: 1 addition & 1 deletion src/store/shapes/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5e89bc4

Please sign in to comment.