diff options
| author | Wladimir J. van der Laan <[email protected]> | 2016-02-10 19:39:33 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-02-10 19:39:54 +0100 |
| commit | b93f078496486c6b781d528a1061525f4fabd98f (patch) | |
| tree | 608124d91bbeabf2eaa706eccb21c749aa24ccfd /src/main.cpp | |
| parent | Merge #7491: wallet: Ignore MarkConflict if block hash is not known (diff) | |
| parent | Update the wallet best block marker when pruning (diff) | |
| download | discoin-b93f078496486c6b781d528a1061525f4fabd98f.tar.xz discoin-b93f078496486c6b781d528a1061525f4fabd98f.zip | |
Merge #7502: Update the wallet best block marker when pruning
e4eebb6 Update the wallet best block marker when pruning (Pieter Wuille)
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 20539c1ba..3ad2979b6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2262,7 +2262,7 @@ bool static FlushStateToDisk(CValidationState &state, FlushStateMode mode) { return AbortNode(state, "Failed to write to coin database"); nLastFlush = nNow; } - if ((mode == FLUSH_STATE_ALWAYS || mode == FLUSH_STATE_PERIODIC) && nNow > nLastSetChain + (int64_t)DATABASE_WRITE_INTERVAL * 1000000) { + if (fDoFullFlush || ((mode == FLUSH_STATE_ALWAYS || mode == FLUSH_STATE_PERIODIC) && nNow > nLastSetChain + (int64_t)DATABASE_WRITE_INTERVAL * 1000000)) { // Update best block in wallet (so we can detect restored wallets). GetMainSignals().SetBestChain(chainActive.GetLocator()); nLastSetChain = nNow; |