@@ -30,7 +30,7 @@ int64_t CalculateMaximumSignedTxSize(const CTransaction &tx, const CWallet *pWal
30
30
for (auto & input : tx.vin ) {
31
31
const auto mi = pWallet->mapWallet .find (input.prevout .hash );
32
32
assert (mi != pWallet->mapWallet .end () && input.prevout .n < mi->second .tx ->vout .size ());
33
- vCoins.emplace_back (std::make_pair ( &(mi->second ), input.prevout .n ) );
33
+ vCoins.emplace_back (&(mi->second ), input.prevout .n );
34
34
}
35
35
if (!pWallet->DummySignTx (txNew, vCoins)) {
36
36
// This should never happen, because IsAllFromMe(ISMINE_SPENDABLE)
@@ -147,7 +147,7 @@ CFeeBumper::CFeeBumper(const CWallet *pWallet, const uint256 txidIn, int newConf
147
147
currentResult = BumpFeeResult::INVALID_PARAMETER;
148
148
return ;
149
149
}
150
- CAmount requiredFee = pWallet-> GetRequiredFee (maxNewTxSize);
150
+ CAmount requiredFee = CWallet:: GetRequiredFee (maxNewTxSize);
151
151
if (totalFee < requiredFee) {
152
152
vErrors.push_back (strprintf (" Insufficient totalFee (cannot be less than required fee %s)" ,
153
153
FormatMoney (requiredFee)));
@@ -159,11 +159,11 @@ CFeeBumper::CFeeBumper(const CWallet *pWallet, const uint256 txidIn, int newConf
159
159
} else {
160
160
// if user specified a confirm target then don't consider any global payTxFee
161
161
if (specifiedConfirmTarget) {
162
- nNewFee = pWallet-> GetMinimumFee (maxNewTxSize, newConfirmTarget, mempool, CAmount (0 ));
162
+ nNewFee = CWallet:: GetMinimumFee (maxNewTxSize, newConfirmTarget, mempool, CAmount (0 ));
163
163
}
164
164
// otherwise use the regular wallet logic to select payTxFee or default confirm target
165
165
else {
166
- nNewFee = pWallet-> GetMinimumFee (maxNewTxSize, newConfirmTarget, mempool);
166
+ nNewFee = CWallet:: GetMinimumFee (maxNewTxSize, newConfirmTarget, mempool);
167
167
}
168
168
169
169
nNewFeeRate = CFeeRate (nNewFee, maxNewTxSize);
0 commit comments