mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-13 10:56:24 +00:00
Merge pull request #1352 from RoboSats/fix-custom-coordinator-error
Fix custom Coordinator error
This commit is contained in:
commit
d72e83a91d
@ -25,7 +25,7 @@ const SettingsPage = (): JSX.Element => {
|
||||
setNewAlias('');
|
||||
setNewUrl('');
|
||||
} else {
|
||||
setError(t('Invalid URL'));
|
||||
setError(t('Invalid Onion URL'));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -16,6 +16,7 @@ import { federationLottery } from '../utils';
|
||||
import { AppContext, type UseAppStoreType } from './AppContext';
|
||||
import { GarageContext, type UseGarageStoreType } from './GarageContext';
|
||||
import NativeRobosats from '../services/Native';
|
||||
import { Origins } from '../models/Coordinator.model';
|
||||
|
||||
// Refresh delays (ms) according to Order status
|
||||
const defaultDelay = 5000;
|
||||
@ -175,9 +176,13 @@ export const FederationContextProvider = ({
|
||||
enabled: true,
|
||||
};
|
||||
if (settings.network === 'mainnet') {
|
||||
attributes.mainnet = url;
|
||||
attributes.mainnet = {
|
||||
onion: url,
|
||||
} as Origins;
|
||||
} else {
|
||||
attributes.testnet = url;
|
||||
attributes.testnet = {
|
||||
onion: url,
|
||||
} as Origins;
|
||||
}
|
||||
federation.addCoordinator(origin, settings, hostUrl, attributes);
|
||||
const newCoordinator = federation.coordinators[alias];
|
||||
|
@ -78,7 +78,7 @@
|
||||
"Add": "Add",
|
||||
"Alias": "Alias",
|
||||
"Alias already exists": "Alias already exists",
|
||||
"Invalid URL": "Invalid URL",
|
||||
"Invalid Onion URL": "Invalid Onion URL",
|
||||
"URL": "URL",
|
||||
"#14": "Phrases in components/TorConnection.tsx",
|
||||
"Connected to TOR network": "Connectat a la xarxa TOR",
|
||||
|
@ -78,7 +78,7 @@
|
||||
"Add": "Add",
|
||||
"Alias": "Alias",
|
||||
"Alias already exists": "Alias already exists",
|
||||
"Invalid URL": "Invalid URL",
|
||||
"Invalid Onion URL": "Invalid Onion URL",
|
||||
"URL": "URL",
|
||||
"#14": "Phrases in components/TorConnection.tsx",
|
||||
"Connected to TOR network": "Connected to TOR network",
|
||||
|
@ -78,7 +78,7 @@
|
||||
"Add": "Add",
|
||||
"Alias": "Alias",
|
||||
"Alias already exists": "Alias already exists",
|
||||
"Invalid URL": "Invalid URL",
|
||||
"Invalid Onion URL": "Invalid Onion URL",
|
||||
"URL": "URL",
|
||||
"#14": "Phrases in components/TorConnection.tsx",
|
||||
"Connected to TOR network": "Connected to TOR network",
|
||||
|
@ -78,7 +78,7 @@
|
||||
"Add": "Add",
|
||||
"Alias": "Alias",
|
||||
"Alias already exists": "Alias already exists",
|
||||
"Invalid URL": "Invalid URL",
|
||||
"Invalid Onion URL": "Invalid Onion URL",
|
||||
"URL": "URL",
|
||||
"#14": "Phrases in components/TorConnection.tsx",
|
||||
"Connected to TOR network": "Connected to TOR network",
|
||||
|
@ -78,7 +78,7 @@
|
||||
"Add": "Add",
|
||||
"Alias": "Alias",
|
||||
"Alias already exists": "Alias already exists",
|
||||
"Invalid URL": "Invalid URL",
|
||||
"Invalid Onion URL": "Invalid Onion URL",
|
||||
"URL": "URL",
|
||||
"#14": "Phrases in components/TorConnection.tsx",
|
||||
"Connected to TOR network": "Conectado a la red TOR",
|
||||
|
@ -78,7 +78,7 @@
|
||||
"Add": "Add",
|
||||
"Alias": "Alias",
|
||||
"Alias already exists": "Alias already exists",
|
||||
"Invalid URL": "Invalid URL",
|
||||
"Invalid Onion URL": "Invalid Onion URL",
|
||||
"URL": "URL",
|
||||
"#14": "Phrases in components/TorConnection.tsx",
|
||||
"Connected to TOR network": "Connected to TOR network",
|
||||
|
@ -78,7 +78,7 @@
|
||||
"Add": "Add",
|
||||
"Alias": "Alias",
|
||||
"Alias already exists": "Alias already exists",
|
||||
"Invalid URL": "Invalid URL",
|
||||
"Invalid Onion URL": "Invalid Onion URL",
|
||||
"URL": "URL",
|
||||
"#14": "Phrases in components/TorConnection.tsx",
|
||||
"Connected to TOR network": "Connecté au réseau TOR",
|
||||
|
@ -78,7 +78,7 @@
|
||||
"Add": "Add",
|
||||
"Alias": "Alias",
|
||||
"Alias already exists": "Alias already exists",
|
||||
"Invalid URL": "Invalid URL",
|
||||
"Invalid Onion URL": "Invalid Onion URL",
|
||||
"URL": "URL",
|
||||
"#14": "Phrases in components/TorConnection.tsx",
|
||||
"Connected to TOR network": "Connesso alla rete TOR",
|
||||
|
@ -78,7 +78,7 @@
|
||||
"Add": "Add",
|
||||
"Alias": "Alias",
|
||||
"Alias already exists": "Alias already exists",
|
||||
"Invalid URL": "Invalid URL",
|
||||
"Invalid Onion URL": "Invalid Onion URL",
|
||||
"URL": "URL",
|
||||
"#14": "Phrases in components/TorConnection.tsx",
|
||||
"Connected to TOR network": "TORネットワークに接続しました",
|
||||
|
@ -78,7 +78,7 @@
|
||||
"Add": "Add",
|
||||
"Alias": "Alias",
|
||||
"Alias already exists": "Alias already exists",
|
||||
"Invalid URL": "Invalid URL",
|
||||
"Invalid Onion URL": "Invalid Onion URL",
|
||||
"URL": "URL",
|
||||
"#14": "Phrases in components/TorConnection.tsx",
|
||||
"Connected to TOR network": "Connected to TOR network",
|
||||
|
@ -78,7 +78,7 @@
|
||||
"Add": "Add",
|
||||
"Alias": "Alias",
|
||||
"Alias already exists": "Alias already exists",
|
||||
"Invalid URL": "Invalid URL",
|
||||
"Invalid Onion URL": "Invalid Onion URL",
|
||||
"URL": "URL",
|
||||
"#14": "Phrases in components/TorConnection.tsx",
|
||||
"Connected to TOR network": "Conectado à rede TOR",
|
||||
|
@ -78,7 +78,7 @@
|
||||
"Add": "Add",
|
||||
"Alias": "Alias",
|
||||
"Alias already exists": "Alias already exists",
|
||||
"Invalid URL": "Invalid URL",
|
||||
"Invalid Onion URL": "Invalid Onion URL",
|
||||
"URL": "URL",
|
||||
"#14": "Phrases in components/TorConnection.tsx",
|
||||
"Connected to TOR network": "Подключено к сети TOR",
|
||||
|
@ -78,7 +78,7 @@
|
||||
"Add": "Add",
|
||||
"Alias": "Alias",
|
||||
"Alias already exists": "Alias already exists",
|
||||
"Invalid URL": "Invalid URL",
|
||||
"Invalid Onion URL": "Invalid Onion URL",
|
||||
"URL": "URL",
|
||||
"#14": "Phrases in components/TorConnection.tsx",
|
||||
"Connected to TOR network": "Connected to TOR network",
|
||||
|
@ -78,7 +78,7 @@
|
||||
"Add": "Add",
|
||||
"Alias": "Alias",
|
||||
"Alias already exists": "Alias already exists",
|
||||
"Invalid URL": "Invalid URL",
|
||||
"Invalid Onion URL": "Invalid Onion URL",
|
||||
"URL": "URL",
|
||||
"#14": "Phrases in components/TorConnection.tsx",
|
||||
"Connected to TOR network": "Kuunganishwa kwa mtandao wa TOR",
|
||||
|
@ -78,7 +78,7 @@
|
||||
"Add": "Add",
|
||||
"Alias": "Alias",
|
||||
"Alias already exists": "Alias already exists",
|
||||
"Invalid URL": "Invalid URL",
|
||||
"Invalid Onion URL": "Invalid Onion URL",
|
||||
"URL": "URL",
|
||||
"#14": "Phrases in components/TorConnection.tsx",
|
||||
"Connected to TOR network": "Connected to TOR network",
|
||||
|
@ -78,7 +78,7 @@
|
||||
"Add": "Add",
|
||||
"Alias": "Alias",
|
||||
"Alias already exists": "Alias already exists",
|
||||
"Invalid URL": "Invalid URL",
|
||||
"Invalid Onion URL": "Invalid Onion URL",
|
||||
"URL": "URL",
|
||||
"#14": "Phrases in components/TorConnection.tsx",
|
||||
"Connected to TOR network": "已连线 TOR 网络",
|
||||
|
@ -78,7 +78,7 @@
|
||||
"Add": "Add",
|
||||
"Alias": "Alias",
|
||||
"Alias already exists": "Alias already exists",
|
||||
"Invalid URL": "Invalid URL",
|
||||
"Invalid Onion URL": "Invalid Onion URL",
|
||||
"URL": "URL",
|
||||
"#14": "Phrases in components/TorConnection.tsx",
|
||||
"Connected to TOR network": "已連線 TOR 網絡",
|
||||
|
Loading…
Reference in New Issue
Block a user