Skip to content

Commit

Permalink
merge bitcoin#25497: more accurate target for large transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
kwvg committed Feb 9, 2025
1 parent 6e4d789 commit 66fe2d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wallet/spend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,8 @@ bool CWallet::CreateTransactionInternal(

// vouts to the payees
if (!coin_selection_params.m_subtract_fee_outputs) {
coin_selection_params.tx_noinputs_size = 10; // Static vsize overhead + outputs vsize. 4 nVersion, 4 nLocktime, 1 input count, 1 output count
coin_selection_params.tx_noinputs_size = 9; // Static vsize overhead + outputs vsize. 4 nVersion, 4 nLocktime, 1 input count
coin_selection_params.tx_noinputs_size += GetSizeOfCompactSize(vecSend.size()); // bytes for output count
}
for (const auto& recipient : vecSend)
{
Expand Down

0 comments on commit 66fe2d4

Please sign in to comment.