aboutsummaryrefslogtreecommitdiff
path: root/src/script/script.cpp
diff options
context:
space:
mode:
authorMatt Corallo <[email protected]>2018-04-27 14:08:39 -0400
committerMatt Corallo <[email protected]>2018-04-27 14:44:56 -0400
commit9cb6cdc59f9eb826b70ebbb6353a5bcee74996e3 (patch)
tree1299e0bd9eb3d857dfacf9f18a7e761ef20be5a2 /src/script/script.cpp
parentscripted-diff: Rename SetBestChain callback ChainStateFlushed (diff)
downloaddiscoin-9cb6cdc59f9eb826b70ebbb6353a5bcee74996e3.tar.xz
discoin-9cb6cdc59f9eb826b70ebbb6353a5bcee74996e3.zip
Simplify semantics of ChainStateFlushed callback
Previously, ChainStateFlushed would fire either if a full flush completed (which can happen due to memory limits, forced flush, or on its own DATABASE_WRITE_INTERVAL timer) *or* on a ChainStateFlushed-specific DATABASE_WRITE_INTERVAL timer. This is both less clear for clients (as there are no guarantees about a flush having actually happened prior to the call), and reults in extra flushes not clearly intended by the code. We drop the second case, providing a strong guarantee without removing the periodit timer-based flushing.
Diffstat (limited to 'src/script/script.cpp')
0 files changed, 0 insertions, 0 deletions