going back to the original type mismatch - still debugging forking issue, checkin to try on other machines
This commit is contained in:
@@ -6014,9 +6014,9 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
|
|||||||
if (pindex)
|
if (pindex)
|
||||||
pindex = chainActive.Next(pindex);
|
pindex = chainActive.Next(pindex);
|
||||||
}
|
}
|
||||||
|
|
||||||
// we should probably use CBlocks, as CBlockHeaders won't include the 0x00 nTx count at the end
|
// must use CBlocks because CBlockHeaders won't include the 0x00 nTx count at the end
|
||||||
vector<CBlockHeader> vHeaders;
|
vector<CBlock> vHeaders;
|
||||||
int nLimit = MAX_HEADERS_RESULTS;
|
int nLimit = MAX_HEADERS_RESULTS;
|
||||||
LogPrint("net", "getheaders %d to %s from peer=%d\n", (pindex ? pindex->nHeight : -1), hashStop.ToString(), pfrom->id);
|
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
|
//if ( pfrom->lasthdrsreq >= chainActive.Height()-MAX_HEADERS_RESULTS || pfrom->lasthdrsreq != (int32_t)(pindex ? pindex->nHeight : -1) )// no need to ever suppress this
|
||||||
|
|||||||
@@ -895,12 +895,13 @@ void static VerusStaker(CWallet *pwallet)
|
|||||||
//
|
//
|
||||||
int64_t nStart = GetTime();
|
int64_t nStart = GetTime();
|
||||||
|
|
||||||
|
// take up the necessary space for alignment
|
||||||
|
pblock->nSolution = solnPlaceholder;
|
||||||
|
|
||||||
// we don't use this, but IncrementExtraNonce is the function that builds the merkle tree
|
// we don't use this, but IncrementExtraNonce is the function that builds the merkle tree
|
||||||
unsigned int nExtraNonce = 0;
|
unsigned int nExtraNonce = 0;
|
||||||
IncrementExtraNonce(pblock, pindexPrev, nExtraNonce);
|
IncrementExtraNonce(pblock, pindexPrev, nExtraNonce);
|
||||||
|
|
||||||
pblock->nSolution = solnPlaceholder;
|
|
||||||
|
|
||||||
if (vNodes.empty() && chainparams.MiningRequiresPeers())
|
if (vNodes.empty() && chainparams.MiningRequiresPeers())
|
||||||
{
|
{
|
||||||
if ( Mining_height > ASSETCHAINS_MINHEIGHT )
|
if ( Mining_height > ASSETCHAINS_MINHEIGHT )
|
||||||
|
|||||||
Reference in New Issue
Block a user