diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2017-09-20 16:19:30 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2017-11-10 17:03:15 -0500 |
commit | 37bdcca3c363cf08ad68e044b493e24e89f2d158 (patch) | |
tree | 3cd231f87723acb010191a6b7581cb592672da13 /src/wallet/feebumper.h | |
parent | 7c4f0091957d305679546fde592ffa2de2d186fe (diff) |
[refactor] Make feebumper namespace
Future commit will remove the FeeBumper class. This commit simply places
everything into a feebumper namespace, and changes the enum class name
from BumpeFeeResult to feebumper::Result.
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 |