Get pruning enabled value to show in GUI from bitcoin -prune setting.
| 86 | |
| 87 | //! Get pruning enabled value to show in GUI from bitcoin -prune setting. |
| 88 | static 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). |
no outgoing calls
no test coverage detected