mirror of
https://codeberg.org/anoncontributorxmr/mysu.git
synced 2024-11-25 08:52:28 +00:00
Merge pull request 'chore: update default nodes' (#4) from chore/update-default-nodes into master
Reviewed-on: https://codeberg.org/anoncontributorxmr/mysu/pulls/4
This commit is contained in:
commit
4ee0e3134b
2 changed files with 43 additions and 33 deletions
|
@ -25,17 +25,35 @@ enum class DefaultNodes(
|
||||||
private val network: String,
|
private val network: String,
|
||||||
private val nodeName: String
|
private val nodeName: String
|
||||||
) {
|
) {
|
||||||
SAMOURAI("163.172.56.213", 18089, "mainnet", "SamouraiWallet"), MONERUJO(
|
MONERUJO(
|
||||||
"nodex.monerujo.io",
|
"nodex.monerujo.io",
|
||||||
18081,
|
18081,
|
||||||
"mainnet",
|
"mainnet",
|
||||||
"monerujo"
|
"monerujo"
|
||||||
),
|
),
|
||||||
SUPPORTXMR(
|
SETHFORPRIVACY(
|
||||||
"node.supportxmr.com",
|
"node.sethforprivacy.com",
|
||||||
|
18089,
|
||||||
|
"mainnet",
|
||||||
|
"sethforprivacy"
|
||||||
|
),
|
||||||
|
RUCKNIUM(
|
||||||
|
"rucknium.me",
|
||||||
18081,
|
18081,
|
||||||
"mainnet",
|
"mainnet",
|
||||||
"SupportXMR"
|
"Rucknium"
|
||||||
|
),
|
||||||
|
STACKWALLET(
|
||||||
|
"monero.stackwallet.com",
|
||||||
|
18081,
|
||||||
|
"mainnet",
|
||||||
|
"StackWallet"
|
||||||
|
),
|
||||||
|
CAKEWALLET(
|
||||||
|
"xmr-node.cakewallet.com",
|
||||||
|
18081,
|
||||||
|
"mainnet",
|
||||||
|
"CakeWallet"
|
||||||
),
|
),
|
||||||
HASHVAULT(
|
HASHVAULT(
|
||||||
"nodes.hashvault.pro",
|
"nodes.hashvault.pro",
|
||||||
|
@ -55,41 +73,35 @@ enum class DefaultNodes(
|
||||||
"mainnet",
|
"mainnet",
|
||||||
"XMRTW"
|
"XMRTW"
|
||||||
),
|
),
|
||||||
MYNERO_I2P(
|
|
||||||
"ynk3hrwte23asonojqeskoulek2g2cd6tqg4neghnenfyljrvhga.b32.i2p",
|
|
||||||
0,
|
|
||||||
"mainnet",
|
|
||||||
"node.mysu.i2p"
|
|
||||||
),
|
|
||||||
MYNERO_ONION(
|
|
||||||
"tiopyrxseconw73thwlv2pf5hebfcqxj5zdolym7z6pbq6gl4z7xz4ad.onion",
|
|
||||||
18081,
|
|
||||||
"mainnet",
|
|
||||||
"node.mysu.onion"
|
|
||||||
),
|
|
||||||
SAMOURAI_ONION(
|
|
||||||
"446unwib5vc7pfbzflosy6m6vtyuhddnalr3hutyavwe4esfuu5g6ryd.onion",
|
|
||||||
18089,
|
|
||||||
"mainnet",
|
|
||||||
"SamouraiWallet.onion"
|
|
||||||
),
|
|
||||||
MONERUJO_ONION(
|
MONERUJO_ONION(
|
||||||
"monerujods7mbghwe6cobdr6ujih6c22zu5rl7zshmizz2udf7v7fsad.onion",
|
"monerujods7mbghwe6cobdr6ujih6c22zu5rl7zshmizz2udf7v7fsad.onion",
|
||||||
18081,
|
18081,
|
||||||
"mainnet",
|
"mainnet",
|
||||||
"monerujo.onion"
|
"monerujo.onion"
|
||||||
),
|
),
|
||||||
Criminales78(
|
SETHFORPRIVACY_ONION(
|
||||||
"56wl7y2ebhamkkiza4b7il4mrzwtyvpdym7bm2bkg3jrei2je646k3qd.onion",
|
"sfprpc5klzs5vyitq2mrooicgk2wcs5ho2nm3niqduvzn5o6ylaslaqd.onion",
|
||||||
18089,
|
18089,
|
||||||
"mainnet",
|
"mainnet",
|
||||||
"Criminales78.onion"
|
"sethforprivacy.onion"
|
||||||
),
|
),
|
||||||
Xmrfail(
|
RUCKNIUM_ONION(
|
||||||
"mxcd4577fldb3ppzy7obmmhnu3tf57gbcbd4qhwr2kxyjj2qi3dnbfqd.onion",
|
"rucknium757bokwv3ss35ftgc3gzb7hgbvvglbg3hisp7tsj2fkd2nyd.onion",
|
||||||
18081,
|
18081,
|
||||||
"mainnet",
|
"mainnet",
|
||||||
"xmrfail.onion"
|
"rucknium.onion"
|
||||||
|
),
|
||||||
|
PLOWSOF_ONION1(
|
||||||
|
"plowsofe6cleftfmk2raiw5h2x66atrik3nja4bfd3zrfa2hdlgworad.onion",
|
||||||
|
18089,
|
||||||
|
"mainnet",
|
||||||
|
"plowsof.onion.1"
|
||||||
|
),
|
||||||
|
PLOWSOF_ONION2(
|
||||||
|
"plowsoffjexmxalw73tkjmf422gq6575fc7vicuu4javzn2ynnte6tyd.onion",
|
||||||
|
18089,
|
||||||
|
"mainnet",
|
||||||
|
"plowsof.onion.2"
|
||||||
),
|
),
|
||||||
Boldsuck(
|
Boldsuck(
|
||||||
"6dsdenp6vjkvqzy4wzsnzn6wixkdzihx3khiumyzieauxuxslmcaeiad.onion",
|
"6dsdenp6vjkvqzy4wzsnzn6wixkdzihx3khiumyzieauxuxslmcaeiad.onion",
|
||||||
|
|
|
@ -28,15 +28,13 @@ class PrefService(application: MoneroApplication) : ServiceBase(null) {
|
||||||
val node: Node?
|
val node: Node?
|
||||||
get() {
|
get() {
|
||||||
val usesProxy = ProxyService.instance?.usingProxy == true
|
val usesProxy = ProxyService.instance?.usingProxy == true
|
||||||
var defaultNode = DefaultNodes.SAMOURAI
|
var defaultNode = DefaultNodes.MONERUJO
|
||||||
if (usesProxy) {
|
if (usesProxy) {
|
||||||
val proxyPort = ProxyService.instance?.proxyPort
|
val proxyPort = ProxyService.instance?.proxyPort
|
||||||
if (proxyPort?.isNotEmpty() == true) {
|
if (proxyPort?.isNotEmpty() == true) {
|
||||||
val port = proxyPort.toInt()
|
val port = proxyPort.toInt()
|
||||||
defaultNode = if (port == 4447) {
|
if (port == 9050) {
|
||||||
DefaultNodes.MYNERO_I2P
|
defaultNode = DefaultNodes.MONERUJO_ONION
|
||||||
} else {
|
|
||||||
DefaultNodes.MYNERO_ONION
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue