aboutsummaryrefslogtreecommitdiff
path: root/src/bench
diff options
context:
space:
mode:
authorS3RK <1466284+S3RK@users.noreply.github.com>2022-06-27 09:09:09 +0200
committerS3RK <1466284+S3RK@users.noreply.github.com>2022-06-28 08:33:40 +0200
commita94659c84ee10ac5915eb5a6b654435183d88521 (patch)
tree2858e3b4b21bffbb44da594b4a4bef5452afd354 /src/bench
parentb9122e95f0f4ff5d2b2e21a5caf6c69d488c0347 (diff)
downloadbitcoin-a94659c84ee10ac5915eb5a6b654435183d88521.tar.xz
wallet: replace GetTxSpendSize with CalculateMaximumSignedInputSize
Diffstat (limited to 'src/bench')
-rw-r--r--src/bench/coin_selection.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bench/coin_selection.cpp b/src/bench/coin_selection.cpp
index b2958bcc9f..f8914e762c 100644
--- a/src/bench/coin_selection.cpp
+++ b/src/bench/coin_selection.cpp
@@ -58,7 +58,8 @@ static void CoinSelection(benchmark::Bench& bench)
// Create coins
std::vector<COutput> coins;
for (const auto& wtx : wtxs) {
- coins.emplace_back(COutPoint(wtx->GetHash(), 0), wtx->tx->vout.at(0), /*depth=*/6 * 24, GetTxSpendSize(wallet, *wtx, 0), /*spendable=*/true, /*solvable=*/true, /*safe=*/true, wtx->GetTxTime(), /*from_me=*/true, /*fees=*/ 0);
+ const auto txout = wtx->tx->vout.at(0);
+ coins.emplace_back(COutPoint(wtx->GetHash(), 0), txout, /*depth=*/6 * 24, CalculateMaximumSignedInputSize(txout, &wallet, false), /*spendable=*/true, /*solvable=*/true, /*safe=*/true, wtx->GetTxTime(), /*from_me=*/true, /*fees=*/ 0);
}
const CoinEligibilityFilter filter_standard(1, 6, 0);