Skip to content

Commit

Permalink
interfaces: Expose CreateRateBumpTransaction's orig_change_pos
Browse files Browse the repository at this point in the history
  • Loading branch information
achow101 committed Jan 8, 2024
1 parent c2d04f1 commit e1ea0ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/interfaces/wallet.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ class Wallet
std::vector<bilingual_str>& errors,
CAmount& old_fee,
CAmount& new_fee,
CMutableTransaction& mtx) = 0;
CMutableTransaction& mtx,
std::optional<uint32_t> reduce_output) = 0;

//! Sign bump transaction.
virtual bool signBumpTransaction(CMutableTransaction& mtx) = 0;
Expand Down
5 changes: 3 additions & 2 deletions src/wallet/interfaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,11 @@ class WalletImpl : public Wallet
std::vector<bilingual_str>& errors,
CAmount& old_fee,
CAmount& new_fee,
CMutableTransaction& mtx) override
CMutableTransaction& mtx,
std::optional<uint32_t> reduce_output) override
{
std::vector<CTxOut> outputs; // just an empty list of new recipients for now
return feebumper::CreateRateBumpTransaction(*m_wallet.get(), txid, coin_control, errors, old_fee, new_fee, mtx, /* require_mine= */ true, outputs) == feebumper::Result::OK;
return feebumper::CreateRateBumpTransaction(*m_wallet.get(), txid, coin_control, errors, old_fee, new_fee, mtx, /* require_mine= */ true, outputs, reduce_output) == feebumper::Result::OK;
}
bool signBumpTransaction(CMutableTransaction& mtx) override { return feebumper::SignTransaction(*m_wallet.get(), mtx); }
bool commitBumpTransaction(const uint256& txid,
Expand Down

0 comments on commit e1ea0ba

Please sign in to comment.