From f2e8496cf961024384b9e5c7ae27d49d1dd666d1 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 21 Jul 2018 10:01:25 -1100 Subject: [PATCH] Test --- src/miner.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/miner.cpp b/src/miner.cpp index 0c458a985..2a364a89f 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -671,6 +671,7 @@ static bool ProcessBlockFound(CBlock* pblock) } } // Track how many getdata requests this block gets + fprintf(stderr,"maprequestcount\n"); //if ( 0 ) { LOCK(wallet.cs_wallet); @@ -680,11 +681,15 @@ static bool ProcessBlockFound(CBlock* pblock) // Process this block the same as if we had received it from another node CValidationState state; + fprintf(stderr,"processnewblock\n"); if (!ProcessNewBlock(1,chainActive.LastTip()->nHeight+1,state, NULL, pblock, true, NULL)) return error("KomodoMiner: ProcessNewBlock, block not accepted"); - + fprintf(stderr,"track mined block\n"); + TrackMinedBlock(pblock->GetHash()); + fprintf(stderr,"komodo_broadcast\n"); komodo_broadcast(pblock,16); + fprintf(stderr,"done processblockfound\n"); return true; }