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 Sep 7, 2023
1 parent 238d29a commit 3965ef6
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 @@ -167,7 +167,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 @@ -309,10 +309,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 3965ef6

Please sign in to comment.