Add assertion to guide static analyzers. Clang Static Analyzer needs this guidance.
This commit is contained in:
parent
fd447a6efe
commit
159c32d1f1
1 changed files with 1 additions and 0 deletions
|
@ -525,6 +525,7 @@ UniValue getblocktemplate(const JSONRPCRequest& request)
|
|||
// Need to update only after we know CreateNewBlock succeeded
|
||||
pindexPrev = pindexPrevNew;
|
||||
}
|
||||
assert(pindexPrev);
|
||||
CBlock* pblock = &pblocktemplate->block; // pointer for convenience
|
||||
const Consensus::Params& consensusParams = Params().GetConsensus();
|
||||
|
||||
|
|
Loading…
Reference in a new issue