SHA256
Solana RPC gateway для клиента и сервера
This commit is contained in:
@@ -57,6 +57,8 @@ import {
|
||||
setContacts,
|
||||
} from './state.js';
|
||||
|
||||
import { setSolanaCluster } from './services/solana-rpc-gateway.js';
|
||||
|
||||
import * as startView from './pages/start-view.js?v=202610072303';
|
||||
import * as entrySettingsView from './pages/entry-settings-view.js?v=202609260900';
|
||||
import * as registerView from './pages/register-view.js?v=202609260900';
|
||||
@@ -2040,6 +2042,14 @@ async function init() {
|
||||
});
|
||||
}
|
||||
if (hasUrlEntrySettingsOverride() && !urlEntrySettingsReady) return;
|
||||
// Public server info: one UI build for both devnet and mainnet.
|
||||
try {
|
||||
await authService.reconnect(state.entrySettings.shineServer);
|
||||
const info = await authService.ws.request('GetServerInfo', {}, 9000);
|
||||
setSolanaCluster(info?.payload?.solanaCluster ?? info?.solanaCluster);
|
||||
} catch (error) {
|
||||
console.warn('Failed to read SHiNE Solana cluster', error);
|
||||
}
|
||||
await tryAutoLogin();
|
||||
if (initialNotificationOpenPayload) {
|
||||
await handleNotificationClick(initialNotificationOpenPayload);
|
||||
|
||||
Reference in New Issue
Block a user