Merge pull request 'Nodes: don't show exhaustion warning if single custom node is used' (#327) from tobtoht/feather:node_warning into master

Reviewed-on: https://git.wownero.com/feather/feather/pulls/327
This commit is contained in:
tobtoht 2021-02-03 23:46:49 +00:00
commit 08ee34c9a6

View file

@ -207,6 +207,7 @@ FeatherNode Nodes::pickEligibleNode() {
auto nodes = wsMode ? m_websocketNodes : m_customNodes;
if (nodes.count() == 0) {
if (wsMode)
this->exhausted();
return rtn;
}
@ -250,7 +251,10 @@ FeatherNode Nodes::pickEligibleNode() {
}
// All nodes tried, and none eligible
// Don't show node exhaustion warning if single custom node is used
if (wsMode || node_indeces.size() > 1) {
this->exhausted();
}
return rtn;
}