mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
Add assertion to guide static analyzers. Clang Static Analyzer needs this guidance.
This commit is contained in:
@@ -525,6 +525,7 @@ UniValue getblocktemplate(const JSONRPCRequest& request)
|
|||||||
// Need to update only after we know CreateNewBlock succeeded
|
// Need to update only after we know CreateNewBlock succeeded
|
||||||
pindexPrev = pindexPrevNew;
|
pindexPrev = pindexPrevNew;
|
||||||
}
|
}
|
||||||
|
assert(pindexPrev);
|
||||||
CBlock* pblock = &pblocktemplate->block; // pointer for convenience
|
CBlock* pblock = &pblocktemplate->block; // pointer for convenience
|
||||||
const Consensus::Params& consensusParams = Params().GetConsensus();
|
const Consensus::Params& consensusParams = Params().GetConsensus();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user