diff options
author | Andrew Chow <achow101-github@achow101.com> | 2022-01-18 19:03:23 -0500 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2022-03-17 11:04:22 -0400 |
commit | d51f27d3bb0d6e3ca55bcd23ce53e4fe413a9360 (patch) | |
tree | 2be30afe1561e64d9410d8647ee01c238ff0f26f /src/bench | |
parent | b799814bbd53736b79495072f3c9e05989a465e8 (diff) | |
download | bitcoin-d51f27d3bb0d6e3ca55bcd23ce53e4fe413a9360.tar.xz |
wallet: Store whether a COutput is from the wallet
Instead of determining whether the containing transaction is from the
wallet dynamically as needed, just pass it in to COutput and store it.
The transaction ownership isn't going to change.
Diffstat (limited to 'src/bench')
-rw-r--r-- | src/bench/coin_selection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bench/coin_selection.cpp b/src/bench/coin_selection.cpp index 4cbfb05228..d22b335a8b 100644 --- a/src/bench/coin_selection.cpp +++ b/src/bench/coin_selection.cpp @@ -58,7 +58,7 @@ static void CoinSelection(benchmark::Bench& bench) // Create coins std::vector<COutput> coins; for (const auto& wtx : wtxs) { - coins.emplace_back(wallet, *wtx, /*iIn=*/ 0, /*depth=*/ 6 * 24, /*spendable=*/ true, /*solvable=*/ true, /*safe=*/ true, wtx->GetTxTime(), /*use_max_sig_in=*/ false); + coins.emplace_back(wallet, *wtx, /*iIn=*/ 0, /*depth=*/ 6 * 24, /*spendable=*/ true, /*solvable=*/ true, /*safe=*/ true, wtx->GetTxTime(), /*from_me=*/ true, /*use_max_sig_in=*/ false); } const CoinEligibilityFilter filter_standard(1, 6, 0); |