This commit is contained in:
jl777
2018-04-20 00:40:03 +03:00
parent 65b4e8809d
commit 7377cedcf6

View File

@@ -635,17 +635,20 @@ static bool ProcessBlockFound(CBlock* pblock)
return error("KomodoMiner: ProcessNewBlock, block not accepted"); return error("KomodoMiner: ProcessNewBlock, block not accepted");
TrackMinedBlock(pblock->GetHash()); TrackMinedBlock(pblock->GetHash());
fprintf(stderr,"broadcast new block t.%u\n",(uint32_t)time(NULL)); if ( ASSETCHAINS_STAKED != 0 )
{ {
LOCK(cs_vNodes); fprintf(stderr,"broadcast new block t.%u\n",(uint32_t)time(NULL));
BOOST_FOREACH(CNode* pnode, vNodes)
{ {
if ( pnode->hSocket == INVALID_SOCKET ) LOCK(cs_vNodes);
continue; BOOST_FOREACH(CNode* pnode, vNodes)
pnode->PushMessage("block", *pblock); {
if ( pnode->hSocket == INVALID_SOCKET )
continue;
pnode->PushMessage("block", *pblock);
}
} }
fprintf(stderr,"finished broadcast new block t.%u\n",(uint32_t)time(NULL));
} }
fprintf(stderr,"finished broadcast new block t.%u\n",(uint32_t)time(NULL));
return true; return true;
} }