From 72bf7ddc24d664a01fe81eab357cf0b30e6f9fcc Mon Sep 17 00:00:00 2001 From: - <-> Date: Sat, 14 Sep 2024 12:24:24 +0200 Subject: [PATCH] chore: update default nodes --- .../net/mynero/wallet/data/DefaultNodes.kt | 68 +++++++++++-------- .../net/mynero/wallet/service/PrefService.kt | 8 +-- 2 files changed, 43 insertions(+), 33 deletions(-) diff --git a/app/src/main/java/net/mynero/wallet/data/DefaultNodes.kt b/app/src/main/java/net/mynero/wallet/data/DefaultNodes.kt index 6e5c594..1b98974 100644 --- a/app/src/main/java/net/mynero/wallet/data/DefaultNodes.kt +++ b/app/src/main/java/net/mynero/wallet/data/DefaultNodes.kt @@ -25,17 +25,35 @@ enum class DefaultNodes( private val network: String, private val nodeName: String ) { - SAMOURAI("163.172.56.213", 18089, "mainnet", "SamouraiWallet"), MONERUJO( + MONERUJO( "nodex.monerujo.io", 18081, "mainnet", "monerujo" ), - SUPPORTXMR( - "node.supportxmr.com", + SETHFORPRIVACY( + "node.sethforprivacy.com", + 18089, + "mainnet", + "sethforprivacy" + ), + RUCKNIUM( + "rucknium.me", 18081, "mainnet", - "SupportXMR" + "Rucknium" + ), + STACKWALLET( + "monero.stackwallet.com", + 18081, + "mainnet", + "StackWallet" + ), + CAKEWALLET( + "xmr-node.cakewallet.com", + 18081, + "mainnet", + "CakeWallet" ), HASHVAULT( "nodes.hashvault.pro", @@ -55,41 +73,35 @@ enum class DefaultNodes( "mainnet", "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( "monerujods7mbghwe6cobdr6ujih6c22zu5rl7zshmizz2udf7v7fsad.onion", 18081, "mainnet", "monerujo.onion" ), - Criminales78( - "56wl7y2ebhamkkiza4b7il4mrzwtyvpdym7bm2bkg3jrei2je646k3qd.onion", + SETHFORPRIVACY_ONION( + "sfprpc5klzs5vyitq2mrooicgk2wcs5ho2nm3niqduvzn5o6ylaslaqd.onion", 18089, "mainnet", - "Criminales78.onion" + "sethforprivacy.onion" ), - Xmrfail( - "mxcd4577fldb3ppzy7obmmhnu3tf57gbcbd4qhwr2kxyjj2qi3dnbfqd.onion", + RUCKNIUM_ONION( + "rucknium757bokwv3ss35ftgc3gzb7hgbvvglbg3hisp7tsj2fkd2nyd.onion", 18081, "mainnet", - "xmrfail.onion" + "rucknium.onion" + ), + PLOWSOF_ONION1( + "plowsofe6cleftfmk2raiw5h2x66atrik3nja4bfd3zrfa2hdlgworad.onion", + 18089, + "mainnet", + "plowsof.onion.1" + ), + PLOWSOF_ONION2( + "plowsoffjexmxalw73tkjmf422gq6575fc7vicuu4javzn2ynnte6tyd.onion", + 18089, + "mainnet", + "plowsof.onion.2" ), Boldsuck( "6dsdenp6vjkvqzy4wzsnzn6wixkdzihx3khiumyzieauxuxslmcaeiad.onion", diff --git a/app/src/main/java/net/mynero/wallet/service/PrefService.kt b/app/src/main/java/net/mynero/wallet/service/PrefService.kt index 8a58dd5..63eb4a4 100644 --- a/app/src/main/java/net/mynero/wallet/service/PrefService.kt +++ b/app/src/main/java/net/mynero/wallet/service/PrefService.kt @@ -28,15 +28,13 @@ class PrefService(application: MoneroApplication) : ServiceBase(null) { val node: Node? get() { val usesProxy = ProxyService.instance?.usingProxy == true - var defaultNode = DefaultNodes.SAMOURAI + var defaultNode = DefaultNodes.MONERUJO if (usesProxy) { val proxyPort = ProxyService.instance?.proxyPort if (proxyPort?.isNotEmpty() == true) { val port = proxyPort.toInt() - defaultNode = if (port == 4447) { - DefaultNodes.MYNERO_I2P - } else { - DefaultNodes.MYNERO_ONION + if (port == 9050) { + defaultNode = DefaultNodes.MONERUJO_ONION } } }