Motivation
Part of #34075
- The
FeeEstimateModeenum was responsible for both selecting the fee estimation algorithm and specifying the fee rate’ format.
Changes in this PR:
- The
FeeEstimateModeenum (UNSET,ECONOMICAL,CONSERVATIVE) is moved to a new util/fees.h header. - A new
FeeRateFormatenum (BTC_KVB,SAT_VB) is introduced inpolicy/feerate.hfor feerate formatting. - The
CFeeRate::ToString()method is updated to useFeeRateFormat. - All relevant function calls have been updated to use the new
FeeRateFormatenum for formatting andFeeEstimateModefor fee estimation mode.
This refactoring separates these unrelated responsibilities to improve code clarity.