mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-25 18:28:53 +01:00
wowlet: fix remote-node connect when the built-in node is off. (1) nodes.cpp loadConfig: when the websocket discovery is disabled, ignore the cached ws node list (stale / polluted with monero nodes from an early build) and use the bundled wownero list. (2) nodes.json: managed clearnet list -> the 4 current healthy wownero nodes (node2/node3.monerodevs.org, spippolatori.it, wownerod.foolsump.com)
This commit is contained in:
@@ -130,6 +130,11 @@ void Nodes::loadConfig() {
|
||||
}
|
||||
|
||||
QStringList websocketNodes = m_nodes.getNodes(constants::networkType, NodeList::ws);
|
||||
// wowlet: the websocket node-discovery server is disabled (no wownero equivalent), so this cached list
|
||||
// never refreshes and may be stale or polluted with monero nodes from an earlier build. Drop it so the
|
||||
// bundled wownero nodes.json below becomes the managed list.
|
||||
if (conf()->get(Config::disableWebsocket).toBool())
|
||||
websocketNodes.clear();
|
||||
for (const auto &node : websocketNodes) {
|
||||
FeatherNode wsNode{node};
|
||||
wsNode.custom = false;
|
||||
|
||||
Reference in New Issue
Block a user