mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-05 18:39:30 +00:00
Nodes: properly initialize hardcoded list
This commit is contained in:
parent
f3ef0bd675
commit
3d074460e1
1 changed files with 3 additions and 1 deletions
|
@ -162,7 +162,9 @@ void Nodes::loadConfig() {
|
||||||
if (nodes_obj.contains(netKey)) {
|
if (nodes_obj.contains(netKey)) {
|
||||||
QJsonArray nodes_list;
|
QJsonArray nodes_list;
|
||||||
nodes_list = nodes_json[netKey].toObject()["tor"].toArray();
|
nodes_list = nodes_json[netKey].toObject()["tor"].toArray();
|
||||||
nodes_list.append(nodes_json[netKey].toObject()["clearnet"].toArray());
|
for (const auto &node : nodes_json[netKey].toObject()["clearnet"].toArray()) {
|
||||||
|
nodes_list.append(node);
|
||||||
|
}
|
||||||
|
|
||||||
for (auto node: nodes_list) {
|
for (auto node: nodes_list) {
|
||||||
FeatherNode wsNode(node.toString());
|
FeatherNode wsNode(node.toString());
|
||||||
|
|
Loading…
Reference in a new issue