Skip to content

Commit d023398

Browse files
committed
Include Edge monerod server in default settings
1 parent f14c065 commit d023398

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'
@@ -15,7 +16,9 @@ const networkInfo: MoneroNetworkInfo = {
1516

1617
const defaultSettings: MoneroUserSettings = {
1718
enableCustomServers: false,
18-
moneroLightwalletServer: EDGE_MONERO_LWS_SERVER
19+
enableCustomMonerod: false,
20+
moneroLightwalletServer: EDGE_MONERO_LWS_SERVER,
21+
monerodServer: EDGE_MONERO_SERVER
1922
}
2023

2124
export const currencyInfo: EdgeCurrencyInfo = {

src/monero/moneroTypes.ts

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

3434
export const asMoneroUserSettings = asObject({
3535
enableCustomServers: asMaybe(asBoolean, false),
36-
moneroLightwalletServer: asMaybe(asString, EDGE_MONERO_LWS_SERVER)
36+
enableCustomMonerod: asMaybe(asBoolean, false),
37+
moneroLightwalletServer: asMaybe(asString, EDGE_MONERO_LWS_SERVER),
38+
monerodServer: asMaybe(asString, EDGE_MONERO_SERVER)
3739
})
3840
export type MoneroUserSettings = ReturnType<typeof asMoneroUserSettings>
3941

0 commit comments

Comments
 (0)