diff options
Diffstat (limited to 'src/wallet/feebumper.h')
-rw-r--r-- | src/wallet/feebumper.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/wallet/feebumper.h b/src/wallet/feebumper.h index 8daf80367f..046bd56001 100644 --- a/src/wallet/feebumper.h +++ b/src/wallet/feebumper.h @@ -13,7 +13,9 @@ class uint256; class CCoinControl; enum class FeeEstimateMode; -enum class BumpFeeResult +namespace feebumper { + +enum class Result { OK, INVALID_ADDRESS_OR_KEY, @@ -27,7 +29,7 @@ class FeeBumper { public: FeeBumper(const CWallet *wallet, const uint256 txid_in, const CCoinControl& coin_control, CAmount total_fee); - BumpFeeResult getResult() const { return current_result; } + Result getResult() const { return current_result; } const std::vector<std::string>& getErrors() const { return errors; } CAmount getOldFee() const { return old_fee; } CAmount getNewFee() const { return new_fee; } @@ -53,9 +55,11 @@ private: uint256 bumped_txid; CMutableTransaction mtx; std::vector<std::string> errors; - BumpFeeResult current_result; + Result current_result; CAmount old_fee; CAmount new_fee; }; +} // namespace feebumper + #endif // BITCOIN_WALLET_FEEBUMPER_H |