Skip to content

Commit bb78c15

Browse files
committed
Restore CalculateMaximumSignedTxSize function signature
1 parent 51ea44f commit bb78c15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wallet/feebumper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// calculation, but we should be able to refactor after priority is removed).
2121
// NOTE: this requires that all inputs must be in mapWallet (eg the tx should
2222
// be IsAllFromMe).
23-
int64_t CalculateMaximumSignedTxSize(const CWallet *pWallet, const CTransaction &tx)
23+
int64_t CalculateMaximumSignedTxSize(const CTransaction &tx, const CWallet *pWallet)
2424
{
2525
CMutableTransaction txNew(tx);
2626
std::vector<std::pair<const CWalletTx *, unsigned int>> vCoins;
@@ -120,7 +120,7 @@ CFeeBumper::CFeeBumper(const CWallet *pWallet, const uint256 txidIn, int newConf
120120

121121
// Calculate the expected size of the new transaction.
122122
int64_t txSize = GetVirtualTransactionSize(*(wtx.tx));
123-
const int64_t maxNewTxSize = CalculateMaximumSignedTxSize(pWallet, *wtx.tx);
123+
const int64_t maxNewTxSize = CalculateMaximumSignedTxSize(*wtx.tx, pWallet);
124124
if (maxNewTxSize < 0) {
125125
vErrors.push_back("Transaction contains inputs that cannot be signed");
126126
currentResult = BumpFeeResult::INVALID_ADDRESS_OR_KEY;

0 commit comments

Comments
 (0)