This commit is contained in:
jl777
2018-04-20 00:39:38 +03:00
parent 8eb43ab4ff
commit 65b4e8809d

View File

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