aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/rpcwallet.cpp
diff options
context:
space:
mode:
authorRussell Yanofsky <russ@yanofsky.org>2017-09-20 16:19:30 -0400
committerJohn Newbery <john@johnnewbery.com>2017-11-10 17:03:15 -0500
commit37bdcca3c363cf08ad68e044b493e24e89f2d158 (patch)
tree3cd231f87723acb010191a6b7581cb592672da13 /src/wallet/rpcwallet.cpp
parent7c4f0091957d305679546fde592ffa2de2d186fe (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/rpcwallet.cpp')
-rw-r--r--src/wallet/rpcwallet.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp
index e9fd15aa08..8738952bf1 100644
--- a/src/wallet/rpcwallet.cpp
+++ b/src/wallet/rpcwallet.cpp
@@ -3125,21 +3125,21 @@ UniValue bumpfee(const JSONRPCRequest& request)
LOCK2(cs_main, pwallet->cs_wallet);
EnsureWalletIsUnlocked(pwallet);
- FeeBumper feeBump(pwallet, hash, coin_control, totalFee);
- BumpFeeResult res = feeBump.getResult();
- if (res != BumpFeeResult::OK)
+ feebumper::FeeBumper feeBump(pwallet, hash, coin_control, totalFee);
+ feebumper::Result res = feeBump.getResult();
+ if (res != feebumper::Result::OK)
{
switch(res) {
- case BumpFeeResult::INVALID_ADDRESS_OR_KEY:
+ case feebumper::Result::INVALID_ADDRESS_OR_KEY:
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, feeBump.getErrors()[0]);
break;
- case BumpFeeResult::INVALID_REQUEST:
+ case feebumper::Result::INVALID_REQUEST:
throw JSONRPCError(RPC_INVALID_REQUEST, feeBump.getErrors()[0]);
break;
- case BumpFeeResult::INVALID_PARAMETER:
+ case feebumper::Result::INVALID_PARAMETER:
throw JSONRPCError(RPC_INVALID_PARAMETER, feeBump.getErrors()[0]);
break;
- case BumpFeeResult::WALLET_ERROR:
+ case feebumper::Result::WALLET_ERROR:
throw JSONRPCError(RPC_WALLET_ERROR, feeBump.getErrors()[0]);
break;
default: