aboutsummaryrefslogtreecommitdiff
path: root/src/validation.cpp
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2018-04-27 14:01:02 -0400
committerMatt Corallo <git@bluematt.me>2018-04-27 14:44:22 -0400
commit50b6533aa2a9ccbc758aaf5a9f6dfa1c9433bff1 (patch)
tree74bd0ba9d60d49940619ca47831f6d68dda0c4be /src/validation.cpp
parent17266a13067c061783e0428c6200985ed8872b16 (diff)
scripted-diff: Rename SetBestChain callback ChainStateFlushed
This much more accurately captures the meaning of the callback. -BEGIN VERIFY SCRIPT- sed -i 's/SetBestChain/ChainStateFlushed/g' src/validationinterface.h src/validationinterface.cpp src/wallet/wallet.h src/wallet/wallet.cpp src/validation.cpp src/index/txindex.h src/index/txindex.cpp -END VERIFY SCRIPT-
Diffstat (limited to 'src/validation.cpp')
-rw-r--r--src/validation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.cpp b/src/validation.cpp
index 14257d78f9..6ab99f1bd6 100644
--- a/src/validation.cpp
+++ b/src/validation.cpp
@@ -2160,7 +2160,7 @@ bool static FlushStateToDisk(const CChainParams& chainparams, CValidationState &
}
if (fDoFullFlush || ((mode == FlushStateMode::ALWAYS || mode == FlushStateMode::PERIODIC) && nNow > nLastSetChain + (int64_t)DATABASE_WRITE_INTERVAL * 1000000)) {
// Update best block in wallet (so we can detect restored wallets).
- GetMainSignals().SetBestChain(chainActive.GetLocator());
+ GetMainSignals().ChainStateFlushed(chainActive.GetLocator());
nLastSetChain = nNow;
}
} catch (const std::runtime_error& e) {