Skip to content

Commit 1abcb05

Browse files
committed
Include Edge monerod server in default settings
1 parent 9329ba9 commit 1abcb05

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/monero/moneroInfo.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { makeOuterPlugin } from '../common/innerPlugin'
44
import type { MoneroTools } from './MoneroTools'
55
import {
66
EDGE_MONERO_LWS_SERVER,
7+
EDGE_MONERO_SERVER,
78
MoneroNetworkInfo,
89
MoneroUserSettings
910
} from './moneroTypes'
@@ -14,7 +15,9 @@ const networkInfo: MoneroNetworkInfo = {
1415

1516
const defaultSettings: MoneroUserSettings = {
1617
enableCustomServers: false,
17-
moneroLightwalletServer: EDGE_MONERO_LWS_SERVER
18+
enableCustomMonerod: false,
19+
moneroLightwalletServer: EDGE_MONERO_LWS_SERVER,
20+
monerodServer: EDGE_MONERO_SERVER
1821
}
1922

2023
export const currencyInfo: EdgeCurrencyInfo = {

src/monero/moneroTypes.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ export interface MoneroNetworkInfo {
2929

3030
export const asMoneroUserSettings = asObject({
3131
enableCustomServers: asMaybe(asBoolean, false),
32-
moneroLightwalletServer: asMaybe(asString, EDGE_MONERO_LWS_SERVER)
32+
enableCustomMonerod: asMaybe(asBoolean, false),
33+
moneroLightwalletServer: asMaybe(asString, EDGE_MONERO_LWS_SERVER),
34+
monerodServer: asMaybe(asString, EDGE_MONERO_SERVER)
3335
})
3436
export type MoneroUserSettings = ReturnType<typeof asMoneroUserSettings>
3537

0 commit comments

Comments
 (0)