CCoinsViewCache::Flush

Push the modifications applied to this cache to its base and wipe local state. Failure to call this method or Sync() before destruction will cause the changes to be forgotten. If reallocate_cache is false, the cache will retain the same memory footprint after flushing and should be destroyed to deallocate.

Synopsis

Declared in <coins.h>

virtual
void
Flush(bool reallocate_cache = true);

Parameters

NameDescription
reallocate_cacheWhen false, keep the same memory footprint after flushing instead of shrinking.