diff options
author | Anthony Towns <aj@erisian.com.au> | 2023-11-01 22:46:17 +1000 |
---|---|---|
committer | Anthony Towns <aj@erisian.com.au> | 2023-11-16 11:14:13 +1000 |
commit | 1410d300df7e57a895f2697d9849a2201021c973 (patch) | |
tree | cf74f8da1b94c7237bca1162a903b004e2ef62a4 /src/wallet/spend.cpp | |
parent | bf574a75016123309b894da895ab1c7a81731933 (diff) | |
download | bitcoin-1410d300df7e57a895f2697d9849a2201021c973.tar.xz |
serialize: Drop useless version param from GetSerializeSize()
Diffstat (limited to 'src/wallet/spend.cpp')
-rw-r--r-- | src/wallet/spend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/spend.cpp b/src/wallet/spend.cpp index ed0134375c..86838597e6 100644 --- a/src/wallet/spend.cpp +++ b/src/wallet/spend.cpp @@ -1081,7 +1081,7 @@ static util::Result<CreatedTransactionResult> CreateTransactionInternal( CTxOut txout(recipient.nAmount, GetScriptForDestination(recipient.dest)); // Include the fee cost for outputs. - coin_selection_params.tx_noinputs_size += ::GetSerializeSize(txout, PROTOCOL_VERSION); + coin_selection_params.tx_noinputs_size += ::GetSerializeSize(txout); if (IsDust(txout, wallet.chain().relayDustFee())) { return util::Error{_("Transaction amount too small")}; |