aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2018-07-31 11:31:07 -0700
committerAndrew Chow <achow101-github@achow101.com>2018-07-31 11:31:07 -0700
commit494634a052aa760f04273af48a6475a7956d29ee (patch)
treebc3c6ef623a0d48f7687ff80e8e240742875851e
parent230652cafc51a087b25a5e6fbc0114e63b3be0aa (diff)
downloadbitcoin-494634a052aa760f04273af48a6475a7956d29ee.tar.xz
bench: Make CoinSelection output groups pass eligibility filter
Set the depth of the output groups used in the CoinSelection benchmark to be 6 in order to pass the eligibility filter for the benchmark.
-rw-r--r--src/bench/coin_selection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bench/coin_selection.cpp b/src/bench/coin_selection.cpp
index 7510d53c88..20013d702b 100644
--- a/src/bench/coin_selection.cpp
+++ b/src/bench/coin_selection.cpp
@@ -21,7 +21,7 @@ static void addCoin(const CAmount& nValue, const CWallet& wallet, std::vector<Ou
int nAge = 6 * 24;
COutput output(wtx, nInput, nAge, true /* spendable */, true /* solvable */, true /* safe */);
- groups.emplace_back(output.GetInputCoin(), 0, false, 0, 0);
+ groups.emplace_back(output.GetInputCoin(), 6, false, 0, 0);
}
// Simple benchmark for wallet coin selection. Note that it maybe be necessary