Skip to content

Commit e1ea0ba

Browse files
committed
interfaces: Expose CreateRateBumpTransaction's orig_change_pos
1 parent c2d04f1 commit e1ea0ba

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/interfaces/wallet.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ class Wallet
168168
std::vector<bilingual_str>& errors,
169169
CAmount& old_fee,
170170
CAmount& new_fee,
171-
CMutableTransaction& mtx) = 0;
171+
CMutableTransaction& mtx,
172+
std::optional<uint32_t> reduce_output) = 0;
172173

173174
//! Sign bump transaction.
174175
virtual bool signBumpTransaction(CMutableTransaction& mtx) = 0;

src/wallet/interfaces.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,10 +312,11 @@ class WalletImpl : public Wallet
312312
std::vector<bilingual_str>& errors,
313313
CAmount& old_fee,
314314
CAmount& new_fee,
315-
CMutableTransaction& mtx) override
315+
CMutableTransaction& mtx,
316+
std::optional<uint32_t> reduce_output) override
316317
{
317318
std::vector<CTxOut> outputs; // just an empty list of new recipients for now
318-
return feebumper::CreateRateBumpTransaction(*m_wallet.get(), txid, coin_control, errors, old_fee, new_fee, mtx, /* require_mine= */ true, outputs) == feebumper::Result::OK;
319+
return feebumper::CreateRateBumpTransaction(*m_wallet.get(), txid, coin_control, errors, old_fee, new_fee, mtx, /* require_mine= */ true, outputs, reduce_output) == feebumper::Result::OK;
319320
}
320321
bool signBumpTransaction(CMutableTransaction& mtx) override { return feebumper::SignTransaction(*m_wallet.get(), mtx); }
321322
bool commitBumpTransaction(const uint256& txid,

0 commit comments

Comments
 (0)