tests: Update DuplicateMockDatabase for MockableDatabase

This commit is contained in:
Andrew Chow
2022-12-12 16:57:54 -05:00
parent f0eecf5e40
commit b3bb17d5d0
4 changed files with 6 additions and 26 deletions

View File

@@ -79,7 +79,7 @@ static void WalletLoading(benchmark::Bench& bench, bool legacy_wallet)
AddTx(*wallet);
}
database = DuplicateMockDatabase(wallet->GetDatabase(), options);
database = DuplicateMockDatabase(wallet->GetDatabase());
// reload the wallet for the actual benchmark
BenchUnloadWallet(std::move(wallet));
@@ -88,7 +88,7 @@ static void WalletLoading(benchmark::Bench& bench, bool legacy_wallet)
wallet = BenchLoadWallet(std::move(database), context, options);
// Cleanup
database = DuplicateMockDatabase(wallet->GetDatabase(), options);
database = DuplicateMockDatabase(wallet->GetDatabase());
BenchUnloadWallet(std::move(wallet));
});
}