From 6ca35f2b0ac41004bd2e795c7c6475f2e4a00461 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Mon, 28 Jun 2021 21:17:59 -0400 Subject: [PATCH] Remove dead code --- src/miner.cpp | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/miner.cpp b/src/miner.cpp index 9a843a52d..165497694 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -891,29 +891,6 @@ void komodo_sendmessage(int32_t minpeers,int32_t maxpeers,const char *message,st } } -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)); - { - LOCK(cs_vNodes); - BOOST_FOREACH(CNode* pnode, vNodes) - { - if ( pnode->hSocket == INVALID_SOCKET ) - continue; - if ( (rand() % n) == 0 ) - { - pnode->PushMessage("block", *pblock); - if ( n++ > limit ) - break; - } - } - } - //fprintf(stderr,"finished broadcast new block t.%u\n",(uint32_t)time(NULL)); -} - static bool ProcessBlockFound(CBlock* pblock, CWallet& wallet, CReserveKey& reservekey) #else static bool ProcessBlockFound(CBlock* pblock) @@ -968,7 +945,6 @@ static bool ProcessBlockFound(CBlock* pblock) return error("HushMiner: ProcessNewBlock, block not accepted"); TrackMinedBlock(pblock->GetHash()); - //komodo_broadcast(pblock,16); return true; }