Merge pull request #1352 from RoboSats/fix-custom-coordinator-error

Fix custom Coordinator error
This commit is contained in:
KoalaSat 2024-06-25 13:28:16 +00:00 committed by GitHub
commit d72e83a91d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
19 changed files with 25 additions and 20 deletions

View File

@ -25,7 +25,7 @@ const SettingsPage = (): JSX.Element => {
setNewAlias('');
setNewUrl('');
} else {
setError(t('Invalid URL'));
setError(t('Invalid Onion URL'));
}
}
};

View File

@ -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];

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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ネットワークに接続しました",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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 网络",

View File

@ -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 網絡",