Protect from null ptr on chain tip
This commit is contained in:
@@ -11,6 +11,7 @@ using namespace std;
|
||||
* CChain implementation
|
||||
*/
|
||||
void CChain::SetTip(CBlockIndex *pindex) {
|
||||
lastTip = pindex;
|
||||
if (pindex == NULL) {
|
||||
vChain.clear();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user