Don't warn about no nodes to relay to when -testnode=1

This commit is contained in:
Duke
2025-05-30 13:50:52 -04:00
parent 70672d02a3
commit 0a42eb3c1a

View File

@@ -2506,7 +2506,9 @@ void RelayTransaction(const CTransaction& tx, const CDataStream& ss)
// If we have no nodes to relay to, there is nothing to do
if(vNodes.size() == 0) {
fprintf(stderr, "%s: No nodes to relay to!\n", __func__ );
if (HUSH_TESTNODE==0) {
fprintf(stderr, "%s: No nodes to relay to!\n", __func__ );
}
return;
}