@ -988,7 +988,7 @@ void static InvalidChainFound(CBlockIndex* pindexNew)
hashBestChain . ToString ( ) . substr ( 0 , 20 ) . c_str ( ) , nBestHeight , bnBestChainWork . ToString ( ) . c_str ( ) ,
hashBestChain . ToString ( ) . substr ( 0 , 20 ) . c_str ( ) , nBestHeight , bnBestChainWork . ToString ( ) . c_str ( ) ,
DateTimeStrFormat ( " %x %H:%M:%S " , pindexBest - > GetBlockTime ( ) ) . c_str ( ) ) ;
DateTimeStrFormat ( " %x %H:%M:%S " , pindexBest - > GetBlockTime ( ) ) . c_str ( ) ) ;
if ( pindexBest & & bnBestInvalidWork > bnBestChainWork + pindexBest - > GetBlockWork ( ) * 6 )
if ( pindexBest & & bnBestInvalidWork > bnBestChainWork + pindexBest - > GetBlockWork ( ) * 6 )
printf ( " InvalidChainFound: WARNING: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade. \n " ) ;
printf ( " InvalidChainFound: Warning: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade. \n " ) ;
}
}
void CBlock : : UpdateTime ( const CBlockIndex * pindexPrev )
void CBlock : : UpdateTime ( const CBlockIndex * pindexPrev )
@ -1657,7 +1657,7 @@ bool CBlock::SetBestChain(CTxDB& txdb, CBlockIndex* pindexNew)
printf ( " SetBestChain: %d of last 100 blocks above version %d \n " , nUpgraded , CBlock : : CURRENT_VERSION ) ;
printf ( " SetBestChain: %d of last 100 blocks above version %d \n " , nUpgraded , CBlock : : CURRENT_VERSION ) ;
if ( nUpgraded > 100 / 2 )
if ( nUpgraded > 100 / 2 )
// strMiscWarning is read by GetWarnings(), called by Qt and the JSON-RPC code to warn the user:
// strMiscWarning is read by GetWarnings(), called by Qt and the JSON-RPC code to warn the user:
strMiscWarning = _ ( " Warning: this version is obsolete, upgrade required " ) ;
strMiscWarning = _ ( " Warning: This version is obsolete, upgrade required! " ) ;
}
}
std : : string strCmd = GetArg ( " -blocknotify " , " " ) ;
std : : string strCmd = GetArg ( " -blocknotify " , " " ) ;
@ -1923,7 +1923,7 @@ bool CheckDiskSpace(uint64 nAdditionalBytes)
if ( nFreeBytesAvailable < nMinDiskSpace + nAdditionalBytes )
if ( nFreeBytesAvailable < nMinDiskSpace + nAdditionalBytes )
{
{
fShutdown = true ;
fShutdown = true ;
string strMessage = _ ( " Warning: Disk space is low " ) ;
string strMessage = _ ( " Warning: Disk space is low! " ) ;
strMiscWarning = strMessage ;
strMiscWarning = strMessage ;
printf ( " *** %s \n " , strMessage . c_str ( ) ) ;
printf ( " *** %s \n " , strMessage . c_str ( ) ) ;
uiInterface . ThreadSafeMessageBox ( strMessage , " Bitcoin " , CClientUIInterface : : OK | CClientUIInterface : : ICON_EXCLAMATION | CClientUIInterface : : MODAL ) ;
uiInterface . ThreadSafeMessageBox ( strMessage , " Bitcoin " , CClientUIInterface : : OK | CClientUIInterface : : ICON_EXCLAMATION | CClientUIInterface : : MODAL ) ;
@ -2218,7 +2218,7 @@ string GetWarnings(string strFor)
if ( pindexBest & & bnBestInvalidWork > bnBestChainWork + pindexBest - > GetBlockWork ( ) * 6 )
if ( pindexBest & & bnBestInvalidWork > bnBestChainWork + pindexBest - > GetBlockWork ( ) * 6 )
{
{
nPriority = 2000 ;
nPriority = 2000 ;
strStatusBar = strRPC = " WARNING: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade. " ;
strStatusBar = strRPC = _ ( " Warning: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade. " ) ;
}
}
// Alerts
// Alerts