mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-08-05 22:44:50 +02:00
Add assertion to guide static analyzers. Clang Static Analyzer needs this guidance.
This commit is contained in:
parent
fd447a6efe
commit
159c32d1f1
@ -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 New Issue
Block a user