From e01f6b42b1b54f17ee5d2cd9f98aabb6b6419a72 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Mon, 7 Aug 2023 13:57:27 +0200 Subject: [PATCH] add fulcrum.sethforprivacy.com public mainnet electrum server --- .../com/sparrowwallet/sparrow/net/PublicElectrumServer.java | 1 + .../sparrow/terminal/preferences/PublicElectrumDialog.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/net/PublicElectrumServer.java b/src/main/java/com/sparrowwallet/sparrow/net/PublicElectrumServer.java index c439adf5..5cb23655 100644 --- a/src/main/java/com/sparrowwallet/sparrow/net/PublicElectrumServer.java +++ b/src/main/java/com/sparrowwallet/sparrow/net/PublicElectrumServer.java @@ -14,6 +14,7 @@ public enum PublicElectrumServer { EMZY_DE("electrum.emzy.de", "ssl://electrum.emzy.de:50002", Network.MAINNET), BITAROO_NET("electrum.bitaroo.net", "ssl://electrum.bitaroo.net:50002", Network.MAINNET), DIYNODES_COM("electrum.diynodes.com", "ssl://electrum.diynodes.com:50022", Network.MAINNET), + SETHFORPRIVACY_COM("fulcrum.sethforprivacy.com", "ssl://fulcrum.sethforprivacy.com:50002", Network.MAINNET), TESTNET_ARANGUREN_ORG("testnet.aranguren.org", "ssl://testnet.aranguren.org:51002", Network.TESTNET); PublicElectrumServer(String name, String url, Network network) { diff --git a/src/main/java/com/sparrowwallet/sparrow/terminal/preferences/PublicElectrumDialog.java b/src/main/java/com/sparrowwallet/sparrow/terminal/preferences/PublicElectrumDialog.java index f3d90b24..8dc068d2 100644 --- a/src/main/java/com/sparrowwallet/sparrow/terminal/preferences/PublicElectrumDialog.java +++ b/src/main/java/com/sparrowwallet/sparrow/terminal/preferences/PublicElectrumDialog.java @@ -37,7 +37,7 @@ public class PublicElectrumDialog extends ServerProxyDialog { url.setSelectedItem(PublicElectrumServer.fromServer(Config.get().getPublicElectrumServer())); url.addListener((selectedIndex, previousSelection, changedByUserInteraction) -> { if(selectedIndex != previousSelection) { - Config.get().setPublicElectrumServer(PublicElectrumServer.values()[selectedIndex].getServer()); + Config.get().setPublicElectrumServer(PublicElectrumServer.getServers().get(selectedIndex).getServer()); } }); mainPanel.addComponent(url);