From 0a42eb3c1a702dbf3179c5e27f1cde21d6e299c0 Mon Sep 17 00:00:00 2001 From: Duke Date: Fri, 30 May 2025 13:50:52 -0400 Subject: [PATCH] Don't warn about no nodes to relay to when -testnode=1 --- src/net.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/net.cpp b/src/net.cpp index b786938bd..4b52c796d 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -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; }