Skip to content

Commit 546afe8

Browse files
committed
interfaces: Expose CreateRateBumpTransaction's orig_change_pos
1 parent ac7c177 commit 546afe8

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
@@ -166,7 +166,8 @@ class Wallet
166166
std::vector<bilingual_str>& errors,
167167
CAmount& old_fee,
168168
CAmount& new_fee,
169-
CMutableTransaction& mtx) = 0;
169+
CMutableTransaction& mtx,
170+
std::optional<uint32_t> reduce_output) = 0;
170171

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

src/wallet/interfaces.cpp

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

0 commit comments

Comments
 (0)