MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / ForceFlushStateToDisk

Method ForceFlushStateToDisk

src/validation.cpp:2855–2861  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2853}
2854
2855void Chainstate::ForceFlushStateToDisk(bool wipe_cache)
2856{
2857 BlockValidationState state;
2858 if (!this->FlushStateToDisk(state, wipe_cache ? FlushStateMode::FORCE_FLUSH : FlushStateMode::FORCE_SYNC)) {
2859 LogWarning("Failed to force flush state (%s)", state.ToString());
2860 }
2861}
2862
2863void Chainstate::PruneAndFlush()
2864{

Callers 10

ShutdownFunction · 0.80
MaybeValidateSnapshotMethod · 0.80
SnapshotTestSetupClass · 0.80
FUZZ_TARGETFunction · 0.80
sanity_check_snapshotFunction · 0.80
gettxoutsetinfoFunction · 0.80
scantxoutsetFunction · 0.80
PrepareUTXOSnapshotFunction · 0.80

Calls 2

FlushStateToDiskMethod · 0.95
ToStringMethod · 0.45

Tested by 2

FUZZ_TARGETFunction · 0.64
sanity_check_snapshotFunction · 0.64