aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcoFalke <[email protected]>2018-07-31 15:24:28 -0400
committerMarcoFalke <[email protected]>2018-07-31 15:24:33 -0400
commit0fb9c87815d180031b7924607946e51f860c3ba8 (patch)
tree8c55f2d28c1cab11273de5d7d9a0d5430ee84105
parentMerge #13776: net: Add missing verification of IPv6 address in CNetAddr::GetI... (diff)
parentbench: Make CoinSelection output groups pass eligibility filter (diff)
downloaddiscoin-0fb9c87815d180031b7924607946e51f860c3ba8.tar.xz
discoin-0fb9c87815d180031b7924607946e51f860c3ba8.zip
Merge #13822: bench: Make CoinSelection output groups pass eligibility filter
494634a052 bench: Make CoinSelection output groups pass eligibility filter (Andrew Chow) Pull request description: 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. Fixes #13813 Tree-SHA512: 55fc6aeda0127f5e155efb982aec211b70dfd3257808dce627886af6866ffa25de4df3c9b10f8c45b6c298a42542c54654f36e59efb208e9055885361f0e501c
-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 7510d53c8..20013d702 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