Browse Source

Additional tests

pull/4/head
Michael Toutonghi 6 years ago
parent
commit
004e332290
  1. 2
      src/main.cpp
  2. 1
      src/primitives/block.h

2
src/main.cpp

@ -6016,7 +6016,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
}
// must use CBlocks because CBlockHeaders won't include the 0x00 nTx count at the end
vector<CBlock> vHeaders;
vector<CBlockHeader> vHeaders;
int nLimit = MAX_HEADERS_RESULTS;
LogPrint("net", "getheaders %d to %s from peer=%d\n", (pindex ? pindex->nHeight : -1), hashStop.ToString(), pfrom->id);
//if ( pfrom->lasthdrsreq >= chainActive.Height()-MAX_HEADERS_RESULTS || pfrom->lasthdrsreq != (int32_t)(pindex ? pindex->nHeight : -1) )// no need to ever suppress this

1
src/primitives/block.h

@ -25,7 +25,6 @@ public:
static const size_t HEADER_SIZE=4+32+32+32+4+4+32; // excluding Equihash solution
static const int32_t CURRENT_VERSION=4;
static uint256 (CBlockHeader::*hashFunction)() const;
static void SetHashAlgo();
int32_t nVersion;

Loading…
Cancel
Save