wallet: Store tx time in COutput

This commit is contained in:
Andrew Chow
2022-01-18 20:31:08 -05:00
parent 46022953ee
commit b799814bbd
5 changed files with 27 additions and 12 deletions

View File

@@ -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, /*use_max_sig_in=*/ false);
coins.emplace_back(wallet, *wtx, /*iIn=*/ 0, /*depth=*/ 6 * 24, /*spendable=*/ true, /*solvable=*/ true, /*safe=*/ true, wtx->GetTxTime(), /*use_max_sig_in=*/ false);
}
const CoinEligibilityFilter filter_standard(1, 6, 0);