mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
[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:
committed by
John Newbery
parent
7c4f009195
commit
37bdcca3c3
@@ -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]) : "") +")");
|
||||
|
||||
Reference in New Issue
Block a user