Test
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user