mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
Check pindexBestForkBase->phashBlock for NULL reference
This commit is contained in:
parent
70eb4efd2f
commit
3aa0a68e00
@ -1745,9 +1745,11 @@ void CheckForkWarningConditions()
|
||||
{
|
||||
if (!fLargeWorkForkFound)
|
||||
{
|
||||
std::string warning = std::string("'Warning: Large-work fork detected, forking after block ") +
|
||||
pindexBestForkBase->phashBlock->ToString() + std::string("'");
|
||||
CAlert::Notify(warning, true);
|
||||
if(pindexBestForkBase->phashBlock != NULL){
|
||||
std::string warning = std::string("'Warning: Large-work fork detected, forking after block ") +
|
||||
pindexBestForkBase->phashBlock->ToString() + std::string("'");
|
||||
CAlert::Notify(warning, true);
|
||||
}
|
||||
}
|
||||
if (pindexBestForkTip)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user