for (quint64 i = 0; i < count; i++) {
QString txData = tx->signedTxToHex(i);
- for (const auto& node: this->nodes->websocketNodes()) {
- if (!node.online) continue;
-
+ for (const auto& node: this->nodes->nodes()) {
QString address = node.toURL();
qDebug() << QString("Relaying %1 to: %2").arg(tx->txid()[i], address);
m_rpc->setDaemonAddress(address);
m_wsExhaustedWarningEmitted = true;
}
+QList<FeatherNode> Nodes::nodes() {
+ // Return current node list
+ return (this->source() == NodeSource::websocket) ? websocketNodes() : m_customNodes;
+}
+
QList<FeatherNode> Nodes::customNodes() {
return m_customNodes;
}
NodeSource source();
FeatherNode connection();
+ QList<FeatherNode> nodes();
QList<FeatherNode> customNodes();
QList<FeatherNode> websocketNodes();