mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-17 00:42:45 +00:00
- Introduce a `FeeRateFormat` enum and change `CFeeRate::ToString()` to use it for `BTC/kvB` vs `sat/vB` output formatting. - Handle all enum values, hence remove default case in `CFeeRate::ToString()` and `assert(False)` when a `FeeRateFormat` value is not handled. - Keep `FeeEstimateMode` focused on fee estimation behavior by removing fee rate format values from `FeeEstimateMode`. - Update all formatting call sites and tests to pass `FeeRateFormat` explicitly, separating fee rate format from fee-estimation mode selection.
16 lines
586 B
C
16 lines
586 B
C
// Copyright (c) The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#ifndef BITCOIN_UTIL_FEES_H
|
|
#define BITCOIN_UTIL_FEES_H
|
|
|
|
/* Used to determine type of fee estimation requested */
|
|
enum class FeeEstimateMode {
|
|
UNSET, //!< Use default settings based on other criteria
|
|
ECONOMICAL, //!< Force estimateSmartFee to use non-conservative estimates
|
|
CONSERVATIVE, //!< Force estimateSmartFee to use conservative estimates
|
|
};
|
|
|
|
#endif // BITCOIN_UTIL_FEES_H
|