Skip to content

Commit 77beab7

Browse files
committed
Merge pull request #6163
87cbdb8 Globals: Explicit Consensus::Params arg for main: (Jorge Timón)
2 parents 503ff6e + 87cbdb8 commit 77beab7

File tree

7 files changed

+52
-45
lines changed

7 files changed

+52
-45
lines changed

src/main.cpp

Lines changed: 35 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ void EraseOrphansFor(NodeId peer) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
9292
* in the last Consensus::Params::nMajorityWindow blocks, starting at pstart and going backwards.
9393
*/
9494
static bool IsSuperMajority(int minVersion, const CBlockIndex* pstart, unsigned nRequired, const Consensus::Params& consensusParams);
95-
static void CheckBlockIndex();
95+
static void CheckBlockIndex(const Consensus::Params& consensusParams);
9696

9797
/** Constant stuff for coinbase transactions we create: */
9898
CScript COINBASE_FLAGS;
@@ -998,7 +998,7 @@ bool AcceptToMemoryPool(CTxMemPool& pool, CValidationState &state, const CTransa
998998
}
999999

10001000
/** Return transaction in tx, and if it was found inside a block, its hash is placed in hashBlock */
1001-
bool GetTransaction(const uint256 &hash, CTransaction &txOut, uint256 &hashBlock, bool fAllowSlow)
1001+
bool GetTransaction(const uint256 &hash, CTransaction &txOut, const Consensus::Params& consensusParams, uint256 &hashBlock, bool fAllowSlow)
10021002
{
10031003
CBlockIndex *pindexSlow = NULL;
10041004

@@ -1044,7 +1044,7 @@ bool GetTransaction(const uint256 &hash, CTransaction &txOut, uint256 &hashBlock
10441044

10451045
if (pindexSlow) {
10461046
CBlock block;
1047-
if (ReadBlockFromDisk(block, pindexSlow)) {
1047+
if (ReadBlockFromDisk(block, pindexSlow, consensusParams)) {
10481048
BOOST_FOREACH(const CTransaction &tx, block.vtx) {
10491049
if (tx.GetHash() == hash) {
10501050
txOut = tx;
@@ -1089,7 +1089,7 @@ bool WriteBlockToDisk(const CBlock& block, CDiskBlockPos& pos, const CMessageHea
10891089
return true;
10901090
}
10911091

1092-
bool ReadBlockFromDisk(CBlock& block, const CDiskBlockPos& pos)
1092+
bool ReadBlockFromDisk(CBlock& block, const CDiskBlockPos& pos, const Consensus::Params& consensusParams)
10931093
{
10941094
block.SetNull();
10951095

@@ -1107,15 +1107,15 @@ bool ReadBlockFromDisk(CBlock& block, const CDiskBlockPos& pos)
11071107
}
11081108

11091109
// Check the header
1110-
if (!CheckProofOfWork(block.GetHash(), block.nBits, Params().GetConsensus()))
1110+
if (!CheckProofOfWork(block.GetHash(), block.nBits, consensusParams))
11111111
return error("ReadBlockFromDisk: Errors in block header at %s", pos.ToString());
11121112

11131113
return true;
11141114
}
11151115

1116-
bool ReadBlockFromDisk(CBlock& block, const CBlockIndex* pindex)
1116+
bool ReadBlockFromDisk(CBlock& block, const CBlockIndex* pindex, const Consensus::Params& consensusParams)
11171117
{
1118-
if (!ReadBlockFromDisk(block, pindex->GetBlockPos()))
1118+
if (!ReadBlockFromDisk(block, pindex->GetBlockPos(), consensusParams))
11191119
return false;
11201120
if (block.GetHash() != pindex->GetBlockHash())
11211121
return error("ReadBlockFromDisk(CBlock&, CBlockIndex*): GetHash() doesn't match index for %s at %s",
@@ -2064,13 +2064,14 @@ void static UpdateTip(CBlockIndex *pindexNew) {
20642064
}
20652065

20662066
/** Disconnect chainActive's tip. You want to manually re-limit mempool size after this */
2067-
bool static DisconnectTip(CValidationState &state) {
2067+
bool static DisconnectTip(CValidationState& state, const Consensus::Params& consensusParams)
2068+
{
20682069
CBlockIndex *pindexDelete = chainActive.Tip();
20692070
assert(pindexDelete);
20702071
mempool.check(pcoinsTip);
20712072
// Read block from disk.
20722073
CBlock block;
2073-
if (!ReadBlockFromDisk(block, pindexDelete))
2074+
if (!ReadBlockFromDisk(block, pindexDelete, consensusParams))
20742075
return AbortNode(state, "Failed to read block");
20752076
// Apply the block atomically to the chain state.
20762077
int64_t nStart = GetTimeMicros();
@@ -2125,13 +2126,14 @@ static int64_t nTimePostConnect = 0;
21252126
* corresponding to pindexNew, to bypass loading it again from disk.
21262127
*/
21272128
bool static ConnectTip(CValidationState &state, CBlockIndex *pindexNew, const CBlock *pblock) {
2129+
const CChainParams& chainparams = Params();
21282130
assert(pindexNew->pprev == chainActive.Tip());
21292131
mempool.check(pcoinsTip);
21302132
// Read block from disk.
21312133
int64_t nTime1 = GetTimeMicros();
21322134
CBlock block;
21332135
if (!pblock) {
2134-
if (!ReadBlockFromDisk(block, pindexNew))
2136+
if (!ReadBlockFromDisk(block, pindexNew, chainparams.GetConsensus()))
21352137
return AbortNode(state, "Failed to read block");
21362138
pblock = █
21372139
}
@@ -2257,6 +2259,7 @@ static void PruneBlockIndexCandidates() {
22572259
* pblock is either NULL or a pointer to a CBlock corresponding to pindexMostWork.
22582260
*/
22592261
static bool ActivateBestChainStep(CValidationState &state, CBlockIndex *pindexMostWork, const CBlock *pblock) {
2262+
const CChainParams& chainparams = Params();
22602263
AssertLockHeld(cs_main);
22612264
bool fInvalidFound = false;
22622265
const CBlockIndex *pindexOldTip = chainActive.Tip();
@@ -2265,7 +2268,7 @@ static bool ActivateBestChainStep(CValidationState &state, CBlockIndex *pindexMo
22652268
// Disconnect active blocks which are no longer in the best chain.
22662269
bool fBlocksDisconnected = false;
22672270
while (chainActive.Tip() && chainActive.Tip() != pindexFork) {
2268-
if (!DisconnectTip(state))
2271+
if (!DisconnectTip(state, chainparams.GetConsensus()))
22692272
return false;
22702273
fBlocksDisconnected = true;
22712274
}
@@ -2333,7 +2336,7 @@ static bool ActivateBestChainStep(CValidationState &state, CBlockIndex *pindexMo
23332336
bool ActivateBestChain(CValidationState &state, const CBlock *pblock) {
23342337
CBlockIndex *pindexNewTip = NULL;
23352338
CBlockIndex *pindexMostWork = NULL;
2336-
const CChainParams& chainParams = Params();
2339+
const CChainParams& chainparams = Params();
23372340
do {
23382341
boost::this_thread::interruption_point();
23392342

@@ -2360,7 +2363,7 @@ bool ActivateBestChain(CValidationState &state, const CBlock *pblock) {
23602363
// Relay inventory, but don't relay old inventory during initial block download.
23612364
int nBlockEstimate = 0;
23622365
if (fCheckpointsEnabled)
2363-
nBlockEstimate = Checkpoints::GetTotalBlocksEstimate(chainParams.Checkpoints());
2366+
nBlockEstimate = Checkpoints::GetTotalBlocksEstimate(chainparams.Checkpoints());
23642367
{
23652368
LOCK(cs_vNodes);
23662369
BOOST_FOREACH(CNode* pnode, vNodes)
@@ -2372,7 +2375,7 @@ bool ActivateBestChain(CValidationState &state, const CBlock *pblock) {
23722375
uiInterface.NotifyBlockTip(hashNewTip);
23732376
}
23742377
} while(pindexMostWork != chainActive.Tip());
2375-
CheckBlockIndex();
2378+
CheckBlockIndex(chainparams.GetConsensus());
23762379

23772380
// Write changes periodically to disk, after relay.
23782381
if (!FlushStateToDisk(state, FLUSH_STATE_PERIODIC)) {
@@ -2382,7 +2385,8 @@ bool ActivateBestChain(CValidationState &state, const CBlock *pblock) {
23822385
return true;
23832386
}
23842387

2385-
bool InvalidateBlock(CValidationState& state, CBlockIndex *pindex) {
2388+
bool InvalidateBlock(CValidationState& state, const Consensus::Params& consensusParams, CBlockIndex *pindex)
2389+
{
23862390
AssertLockHeld(cs_main);
23872391

23882392
// Mark the block itself as invalid.
@@ -2397,7 +2401,7 @@ bool InvalidateBlock(CValidationState& state, CBlockIndex *pindex) {
23972401
setBlockIndexCandidates.erase(pindexWalk);
23982402
// ActivateBestChain considers blocks already in chainActive
23992403
// unconditionally valid already, so force disconnect away from it.
2400-
if (!DisconnectTip(state)) {
2404+
if (!DisconnectTip(state, consensusParams)) {
24012405
return false;
24022406
}
24032407
}
@@ -2904,6 +2908,7 @@ static bool IsSuperMajority(int minVersion, const CBlockIndex* pstart, unsigned
29042908

29052909
bool ProcessNewBlock(CValidationState &state, const CNode* pfrom, const CBlock* pblock, bool fForceProcessing, CDiskBlockPos *dbp)
29062910
{
2911+
const CChainParams& chainparams = Params();
29072912
// Preliminary checks
29082913
bool checked = CheckBlock(*pblock, state);
29092914

@@ -2921,7 +2926,7 @@ bool ProcessNewBlock(CValidationState &state, const CNode* pfrom, const CBlock*
29212926
if (pindex && pfrom) {
29222927
mapBlockSource[pindex->GetBlockHash()] = pfrom->GetId();
29232928
}
2924-
CheckBlockIndex();
2929+
CheckBlockIndex(chainparams.GetConsensus());
29252930
if (!ret)
29262931
return error("%s: AcceptBlock FAILED", __func__);
29272932
}
@@ -3253,6 +3258,7 @@ CVerifyDB::~CVerifyDB()
32533258

32543259
bool CVerifyDB::VerifyDB(CCoinsView *coinsview, int nCheckLevel, int nCheckDepth)
32553260
{
3261+
const CChainParams& chainparams = Params();
32563262
LOCK(cs_main);
32573263
if (chainActive.Tip() == NULL || chainActive.Tip()->pprev == NULL)
32583264
return true;
@@ -3277,7 +3283,7 @@ bool CVerifyDB::VerifyDB(CCoinsView *coinsview, int nCheckLevel, int nCheckDepth
32773283
break;
32783284
CBlock block;
32793285
// check level 0: read from disk
3280-
if (!ReadBlockFromDisk(block, pindex))
3286+
if (!ReadBlockFromDisk(block, pindex, chainparams.GetConsensus()))
32813287
return error("VerifyDB(): *** ReadBlockFromDisk failed at %d, hash=%s", pindex->nHeight, pindex->GetBlockHash().ToString());
32823288
// check level 1: verify block validity
32833289
if (nCheckLevel >= 1 && !CheckBlock(block, state))
@@ -3317,7 +3323,7 @@ bool CVerifyDB::VerifyDB(CCoinsView *coinsview, int nCheckLevel, int nCheckDepth
33173323
uiInterface.ShowProgress(_("Verifying blocks..."), std::max(1, std::min(99, 100 - (int)(((double)(chainActive.Height() - pindex->nHeight)) / (double)nCheckDepth * 50))));
33183324
pindex = chainActive.Next(pindex);
33193325
CBlock block;
3320-
if (!ReadBlockFromDisk(block, pindex))
3326+
if (!ReadBlockFromDisk(block, pindex, chainparams.GetConsensus()))
33213327
return error("VerifyDB(): *** ReadBlockFromDisk failed at %d, hash=%s", pindex->nHeight, pindex->GetBlockHash().ToString());
33223328
if (!ConnectBlock(block, state, pindex, coins))
33233329
return error("VerifyDB(): *** found unconnectable block at %d, hash=%s", pindex->nHeight, pindex->GetBlockHash().ToString());
@@ -3490,7 +3496,7 @@ bool LoadExternalBlockFile(FILE* fileIn, CDiskBlockPos *dbp)
34903496
std::pair<std::multimap<uint256, CDiskBlockPos>::iterator, std::multimap<uint256, CDiskBlockPos>::iterator> range = mapBlocksUnknownParent.equal_range(head);
34913497
while (range.first != range.second) {
34923498
std::multimap<uint256, CDiskBlockPos>::iterator it = range.first;
3493-
if (ReadBlockFromDisk(block, it->second))
3499+
if (ReadBlockFromDisk(block, it->second, chainparams.GetConsensus()))
34943500
{
34953501
LogPrintf("%s: Processing out of order child %s of %s\n", __func__, block.GetHash().ToString(),
34963502
head.ToString());
@@ -3517,9 +3523,8 @@ bool LoadExternalBlockFile(FILE* fileIn, CDiskBlockPos *dbp)
35173523
return nLoaded > 0;
35183524
}
35193525

3520-
void static CheckBlockIndex()
3526+
void static CheckBlockIndex(const Consensus::Params& consensusParams)
35213527
{
3522-
const Consensus::Params& consensusParams = Params().GetConsensus();
35233528
if (!fCheckBlockIndex) {
35243529
return;
35253530
}
@@ -3801,7 +3806,7 @@ bool static AlreadyHave(const CInv& inv) EXCLUSIVE_LOCKS_REQUIRED(cs_main)
38013806
return true;
38023807
}
38033808

3804-
void static ProcessGetData(CNode* pfrom)
3809+
void static ProcessGetData(CNode* pfrom, const Consensus::Params& consensusParams)
38053810
{
38063811
std::deque<CInv>::iterator it = pfrom->vRecvGetData.begin();
38073812

@@ -3856,7 +3861,7 @@ void static ProcessGetData(CNode* pfrom)
38563861
{
38573862
// Send block from disk
38583863
CBlock block;
3859-
if (!ReadBlockFromDisk(block, (*mi).second))
3864+
if (!ReadBlockFromDisk(block, (*mi).second, consensusParams))
38603865
assert(!"cannot load block from disk");
38613866
if (inv.type == MSG_BLOCK)
38623867
pfrom->PushMessage("block", block);
@@ -4248,7 +4253,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
42484253
LogPrint("net", "received getdata for: %s peer=%d\n", vInv[0].ToString(), pfrom->id);
42494254

42504255
pfrom->vRecvGetData.insert(pfrom->vRecvGetData.end(), vInv.begin(), vInv.end());
4251-
ProcessGetData(pfrom);
4256+
ProcessGetData(pfrom, chainparams.GetConsensus());
42524257
}
42534258

42544259

@@ -4514,7 +4519,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
45144519
pfrom->PushMessage("getheaders", chainActive.GetLocator(pindexLast), uint256());
45154520
}
45164521

4517-
CheckBlockIndex();
4522+
CheckBlockIndex(chainparams.GetConsensus());
45184523
}
45194524

45204525
else if (strCommand == "block" && !fImporting && !fReindex) // Ignore blocks received while importing
@@ -4798,6 +4803,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
47984803
// requires LOCK(cs_vRecvMsg)
47994804
bool ProcessMessages(CNode* pfrom)
48004805
{
4806+
const CChainParams& chainparams = Params();
48014807
//if (fDebug)
48024808
// LogPrintf("%s(%u messages)\n", __func__, pfrom->vRecvMsg.size());
48034809

@@ -4812,7 +4818,7 @@ bool ProcessMessages(CNode* pfrom)
48124818
bool fOk = true;
48134819

48144820
if (!pfrom->vRecvGetData.empty())
4815-
ProcessGetData(pfrom);
4821+
ProcessGetData(pfrom, chainparams.GetConsensus());
48164822

48174823
// this maintains the order of responses
48184824
if (!pfrom->vRecvGetData.empty()) return fOk;
@@ -4839,15 +4845,15 @@ bool ProcessMessages(CNode* pfrom)
48394845
it++;
48404846

48414847
// Scan for message start
4842-
if (memcmp(msg.hdr.pchMessageStart, Params().MessageStart(), MESSAGE_START_SIZE) != 0) {
4848+
if (memcmp(msg.hdr.pchMessageStart, chainparams.MessageStart(), MESSAGE_START_SIZE) != 0) {
48434849
LogPrintf("PROCESSMESSAGE: INVALID MESSAGESTART %s peer=%d\n", SanitizeString(msg.hdr.GetCommand()), pfrom->id);
48444850
fOk = false;
48454851
break;
48464852
}
48474853

48484854
// Read header
48494855
CMessageHeader& hdr = msg.hdr;
4850-
if (!hdr.IsValid(Params().MessageStart()))
4856+
if (!hdr.IsValid(chainparams.MessageStart()))
48514857
{
48524858
LogPrintf("PROCESSMESSAGE: ERRORS IN HEADER %s peer=%d\n", SanitizeString(hdr.GetCommand()), pfrom->id);
48534859
continue;

src/main.h

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ bool IsInitialBlockDownload();
192192
/** Format a string that describes several potential problems detected by the core */
193193
std::string GetWarnings(const std::string& strFor);
194194
/** Retrieve a transaction (from memory pool, or from disk, if possible) */
195-
bool GetTransaction(const uint256 &hash, CTransaction &tx, uint256 &hashBlock, bool fAllowSlow = false);
195+
bool GetTransaction(const uint256 &hash, CTransaction &tx, const Consensus::Params& params, uint256 &hashBlock, bool fAllowSlow = false);
196196
/** Find the best known block, and make it the tip of the block chain */
197197
bool ActivateBestChain(CValidationState &state, const CBlock *pblock = NULL);
198198
CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams);
@@ -353,9 +353,8 @@ class CScriptCheck
353353

354354
/** Functions for disk access for blocks */
355355
bool WriteBlockToDisk(const CBlock& block, CDiskBlockPos& pos, const CMessageHeader::MessageStartChars& messageStart);
356-
bool ReadBlockFromDisk(CBlock& block, const CDiskBlockPos& pos);
357-
bool ReadBlockFromDisk(CBlock& block, const CBlockIndex* pindex);
358-
356+
bool ReadBlockFromDisk(CBlock& block, const CDiskBlockPos& pos, const Consensus::Params& consensusParams);
357+
bool ReadBlockFromDisk(CBlock& block, const CBlockIndex* pindex, const Consensus::Params& consensusParams);
359358

360359
/** Functions for validating blocks and updating the block tree */
361360

@@ -381,8 +380,7 @@ bool TestBlockValidity(CValidationState &state, const CBlock& block, CBlockIndex
381380

382381
/** Store block on disk. If dbp is non-NULL, the file is known to already reside on disk */
383382
bool AcceptBlock(const CBlock& block, CValidationState& state, CBlockIndex **pindex, bool fRequested, CDiskBlockPos* dbp);
384-
bool AcceptBlockHeader(const CBlockHeader& block, CValidationState& state, CBlockIndex **ppindex= NULL);
385-
383+
bool AcceptBlockHeader(const CBlockHeader& block, CValidationState& state, const Consensus::Params& consensusParams, CBlockIndex **ppindex= NULL);
386384

387385

388386
class CBlockFileInfo
@@ -451,7 +449,7 @@ class CVerifyDB {
451449
CBlockIndex* FindForkInGlobalIndex(const CChain& chain, const CBlockLocator& locator);
452450

453451
/** Mark a block as invalid. */
454-
bool InvalidateBlock(CValidationState& state, CBlockIndex *pindex);
452+
bool InvalidateBlock(CValidationState& state, const Consensus::Params& consensusParams, CBlockIndex *pindex);
455453

456454
/** Remove invalidity status from a block and its descendants. */
457455
bool ReconsiderBlock(CValidationState& state, CBlockIndex *pindex);

src/rest.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
55

66
#include "chain.h"
7+
#include "chainparams.h"
78
#include "primitives/block.h"
89
#include "primitives/transaction.h"
910
#include "main.h"
@@ -223,7 +224,7 @@ static bool rest_block(HTTPRequest* req,
223224
if (fHavePruned && !(pblockindex->nStatus & BLOCK_HAVE_DATA) && pblockindex->nTx > 0)
224225
return RESTERR(req, HTTP_NOT_FOUND, hashStr + " not available (pruned data)");
225226

226-
if (!ReadBlockFromDisk(block, pblockindex))
227+
if (!ReadBlockFromDisk(block, pblockindex, Params().GetConsensus()))
227228
return RESTERR(req, HTTP_NOT_FOUND, hashStr + " not found");
228229
}
229230

@@ -360,7 +361,7 @@ static bool rest_tx(HTTPRequest* req, const std::string& strURIPart)
360361

361362
CTransaction tx;
362363
uint256 hashBlock = uint256();
363-
if (!GetTransaction(hash, tx, hashBlock, true))
364+
if (!GetTransaction(hash, tx, Params().GetConsensus(), hashBlock, true))
364365
return RESTERR(req, HTTP_NOT_FOUND, hashStr + " not found");
365366

366367
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);

src/rpcblockchain.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ UniValue getblock(const UniValue& params, bool fHelp)
405405
if (fHavePruned && !(pblockindex->nStatus & BLOCK_HAVE_DATA) && pblockindex->nTx > 0)
406406
throw JSONRPCError(RPC_INTERNAL_ERROR, "Block not available (pruned data)");
407407

408-
if(!ReadBlockFromDisk(block, pblockindex))
408+
if(!ReadBlockFromDisk(block, pblockindex, Params().GetConsensus()))
409409
throw JSONRPCError(RPC_INTERNAL_ERROR, "Can't read block from disk");
410410

411411
if (!fVerbose)
@@ -824,7 +824,7 @@ UniValue invalidateblock(const UniValue& params, bool fHelp)
824824
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Block not found");
825825

826826
CBlockIndex* pblockindex = mapBlockIndex[hash];
827-
InvalidateBlock(state, pblockindex);
827+
InvalidateBlock(state, Params().GetConsensus(), pblockindex);
828828
}
829829

830830
if (state.IsValid()) {

src/rpcrawtransaction.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ UniValue getrawtransaction(const UniValue& params, bool fHelp)
186186

187187
CTransaction tx;
188188
uint256 hashBlock;
189-
if (!GetTransaction(hash, tx, hashBlock, true))
189+
if (!GetTransaction(hash, tx, Params().GetConsensus(), hashBlock, true))
190190
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "No information available about transaction");
191191

192192
string strHex = EncodeHexTx(tx);
@@ -256,15 +256,15 @@ UniValue gettxoutproof(const UniValue& params, bool fHelp)
256256
if (pblockindex == NULL)
257257
{
258258
CTransaction tx;
259-
if (!GetTransaction(oneTxid, tx, hashBlock, false) || hashBlock.IsNull())
259+
if (!GetTransaction(oneTxid, tx, Params().GetConsensus(), hashBlock, false) || hashBlock.IsNull())
260260
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Transaction not yet in block");
261261
if (!mapBlockIndex.count(hashBlock))
262262
throw JSONRPCError(RPC_INTERNAL_ERROR, "Transaction index corrupt");
263263
pblockindex = mapBlockIndex[hashBlock];
264264
}
265265

266266
CBlock block;
267-
if(!ReadBlockFromDisk(block, pblockindex))
267+
if(!ReadBlockFromDisk(block, pblockindex, Params().GetConsensus()))
268268
throw JSONRPCError(RPC_INTERNAL_ERROR, "Can't read block from disk");
269269

270270
unsigned int ntxFound = 0;

0 commit comments

Comments
 (0)