diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2018-04-12 08:26:56 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2018-04-12 14:37:53 +0200 |
commit | 159c32d1f111e6bad490bd23ae215462e8ba4374 (patch) | |
tree | 8992ae634d7e8aa4a336a5652cc8165302c6f284 /src/rpc | |
parent | fd447a6efea84d7215ab471bf04284f060e9e3c3 (diff) |
Add assertion to guide static analyzers. Clang Static Analyzer needs this guidance.
Diffstat (limited to 'src/rpc')
-rw-r--r-- | src/rpc/mining.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index 75bc983200..313f3310e2 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -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(); |