From 7a9dfb89a73d80015a2f862d4e8d6b47d2fa04bc Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Mon, 9 Aug 2021 12:30:36 -0400 Subject: [PATCH] Debug for -testnode=1 --- src/chainparams.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/chainparams.cpp b/src/chainparams.cpp index a26f8955c..26f4e8488 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -542,8 +542,11 @@ void *chainparams_commandline() { pCurrentParams->SetNValue(ASSETCHAINS_NK[0]); pCurrentParams->SetKValue(ASSETCHAINS_NK[1]); } - if ( HUSH_TESTNODE != 0 ) + if ( HUSH_TESTNODE != 0 ) { + fprintf(stderr,"%s: This is a test node, mining will not require peers!\n", __func__); pCurrentParams->SetMiningRequiresPeers(false); + } + if ( ASSETCHAINS_RPCPORT == 0 ) ASSETCHAINS_RPCPORT = ASSETCHAINS_P2PPORT + 1; pCurrentParams->pchMessageStart[0] = ASSETCHAINS_MAGIC & 0xff;