[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.
This commit is contained in:
Russell Yanofsky
2017-09-20 16:19:30 -04:00
committed by John Newbery
parent 7c4f009195
commit 37bdcca3c3
4 changed files with 40 additions and 32 deletions

View File

@@ -666,14 +666,14 @@ bool WalletModel::transactionCanBeBumped(uint256 hash) const
bool WalletModel::bumpFee(uint256 hash)
{
std::unique_ptr<FeeBumper> feeBump;
std::unique_ptr<feebumper::FeeBumper> feeBump;
{
CCoinControl coin_control;
coin_control.signalRbf = true;
LOCK2(cs_main, wallet->cs_wallet);
feeBump.reset(new FeeBumper(wallet, hash, coin_control, 0));
feeBump.reset(new feebumper::FeeBumper(wallet, hash, coin_control, 0));
}
if (feeBump->getResult() != BumpFeeResult::OK)
if (feeBump->getResult() != feebumper::Result::OK)
{
QMessageBox::critical(0, tr("Fee bump error"), tr("Increasing transaction fee failed") + "<br />(" +
(feeBump->getErrors().size() ? QString::fromStdString(feeBump->getErrors()[0]) : "") +")");