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

Function PruneEnabled

src/qt/optionsmodel.cpp:88–92  ·  view source on GitHub ↗

Get pruning enabled value to show in GUI from bitcoin -prune setting.

Source from the content-addressed store, hash-verified

86
87//! Get pruning enabled value to show in GUI from bitcoin -prune setting.
88static bool PruneEnabled(const common::SettingsValue& prune_setting)
89{
90 // -prune=1 setting is manual pruning mode, so disabled for purposes of the gui
91 return SettingTo<int64_t>(prune_setting, 0) > 1;
92}
93
94//! Get pruning size value to show in GUI from bitcoin -prune setting. If
95//! pruning is not enabled, just show default recommended pruning size (2GB).

Callers 2

SetPruneTargetGBMethod · 0.85
getOptionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected