Merge pull request #1166 from jl777/FSM

FSM
This commit is contained in:
jl777
2019-01-09 04:33:27 -11:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -4114,7 +4114,7 @@ static bool ActivateBestChainStep(CValidationState &state, CBlockIndex *pindexMo
"- " + strprintf(_("Fork point: %s %s, height %d"), "- " + strprintf(_("Fork point: %s %s, height %d"),
ASSETCHAINS_SYMBOL,pindexFork->phashBlock->GetHex(), pindexFork->GetHeight()) + "\n\n" + ASSETCHAINS_SYMBOL,pindexFork->phashBlock->GetHex(), pindexFork->GetHeight()) + "\n\n" +
_("Please help, human!"); _("Please help, human!");
LogPrintf("*** %s\n", msg); LogPrintf("*** %s\nif you launch with -maxreorg=%d it might be able to resolve this automatically", msg,reorgLength+10);
uiInterface.ThreadSafeMessageBox(msg, "", CClientUIInterface::MSG_ERROR); uiInterface.ThreadSafeMessageBox(msg, "", CClientUIInterface::MSG_ERROR);
StartShutdown(); StartShutdown();
return false; return false;

View File

@@ -1203,8 +1203,8 @@ void CWallet::DecrementNoteWitnesses(const CBlockIndex* pindex)
else else
{ {
if ( nWitnessCacheSize > 0 ) if ( nWitnessCacheSize > 0 )
nWitnessCacheSize-- nWitnessCacheSize--;
} }
// For performance reasons, we write out the witness cache in // For performance reasons, we write out the witness cache in
// CWallet::SetBestChain() (which also ensures that overall consistency // CWallet::SetBestChain() (which also ensures that overall consistency
// of the wallet.dat is maintained). // of the wallet.dat is maintained).