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