Browse Source

Merge #10067: [trivial] Dead code removal

c59aedc [trivial] Dead code removal (Thomas Snider)

Tree-SHA512: 09962c1ae36fb2f19b7e4a03abf3de6632bab984ce30040ca3f843431df33a0f8fa6a2c1d55b076b800547bb656e344d74ea085ff081b613bcdfd7d2f9826374
0.15
Wladimir J. van der Laan 7 years ago
parent
commit
5d7eb39aec
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 13
      src/miner.cpp

13
src/miner.cpp

@ -26,8 +26,6 @@ @@ -26,8 +26,6 @@
#include "validationinterface.h"
#include <algorithm>
#include <boost/thread.hpp>
#include <boost/tuple/tuple.hpp>
#include <queue>
#include <utility>
@ -46,17 +44,6 @@ uint64_t nLastBlockTx = 0; @@ -46,17 +44,6 @@ uint64_t nLastBlockTx = 0;
uint64_t nLastBlockSize = 0;
uint64_t nLastBlockWeight = 0;
class ScoreCompare
{
public:
ScoreCompare() {}
bool operator()(const CTxMemPool::txiter a, const CTxMemPool::txiter b)
{
return CompareTxMemPoolEntryByScore()(*b,*a); // Convert to less than
}
};
int64_t UpdateTime(CBlockHeader* pblock, const Consensus::Params& consensusParams, const CBlockIndex* pindexPrev)
{
int64_t nOldTime = pblock->nTime;

Loading…
Cancel
Save