Fix flood of send block on chain sync. Make net code to ignore KMD peers for LABS faster.

This commit is contained in:
blackjok3r
2018-12-28 15:42:23 +08:00
parent f128d49d2f
commit 292962b36d
3 changed files with 17 additions and 20 deletions

View File

@@ -783,6 +783,8 @@ CBlockTemplate* CreateNewBlockWithKey(CReserveKey& reservekey, int32_t nHeight,
void komodo_broadcast(CBlock *pblock,int32_t limit)
{
if (IsInitialBlockDownload())
return;
int32_t n = 1;
//fprintf(stderr,"broadcast new block t.%u\n",(uint32_t)time(NULL));
{