Skip to content

Commit 3965ef6

Browse files
committed
interfaces: Expose CreateRateBumpTransaction's orig_change_pos
1 parent 238d29a commit 3965ef6

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/interfaces/wallet.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ class Wallet
167167
std::vector<bilingual_str>& errors,
168168
CAmount& old_fee,
169169
CAmount& new_fee,
170-
CMutableTransaction& mtx) = 0;
170+
CMutableTransaction& mtx,
171+
std::optional<uint32_t> reduce_output) = 0;
171172

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

src/wallet/interfaces.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -309,10 +309,11 @@ class WalletImpl : public Wallet
309309
std::vector<bilingual_str>& errors,
310310
CAmount& old_fee,
311311
CAmount& new_fee,
312-
CMutableTransaction& mtx) override
312+
CMutableTransaction& mtx,
313+
std::optional<uint32_t> reduce_output) override
313314
{
314315
std::vector<CTxOut> outputs; // just an empty list of new recipients for now
315-
return feebumper::CreateRateBumpTransaction(*m_wallet.get(), txid, coin_control, errors, old_fee, new_fee, mtx, /* require_mine= */ true, outputs) == feebumper::Result::OK;
316+
return feebumper::CreateRateBumpTransaction(*m_wallet.get(), txid, coin_control, errors, old_fee, new_fee, mtx, /* require_mine= */ true, outputs, reduce_output) == feebumper::Result::OK;
316317
}
317318
bool signBumpTransaction(CMutableTransaction& mtx) override { return feebumper::SignTransaction(*m_wallet.get(), mtx); }
318319
bool commitBumpTransaction(const uint256& txid,

0 commit comments

Comments
 (0)