mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Merge 296e882250 into merged_master (Bitcoin PR bitcoin/bitcoin#26598)
This commit is contained in:
commit
0fa67e0cb9
6 changed files with 3 additions and 98 deletions
|
|
@ -162,7 +162,7 @@ static void AvailableCoins(benchmark::Bench& bench, const std::vector<OutputType
|
|||
|
||||
// Check available balance
|
||||
auto bal = wallet::GetAvailableBalance(wallet); // Cache
|
||||
assert(bal == 50 * COIN * (chain_size - COINBASE_MATURITY));
|
||||
assert(bal[::policyAsset] == 50 * COIN * (chain_size - COINBASE_MATURITY));
|
||||
|
||||
bench.epochIterations(2).run([&] {
|
||||
LOCK(wallet.cs_wallet);
|
||||
|
|
@ -181,4 +181,4 @@ static void WalletAvailableCoins(benchmark::Bench& bench) { AvailableCoins(bench
|
|||
|
||||
BENCHMARK(WalletCreateTxUseOnlyPresetInputs, benchmark::PriorityLevel::LOW)
|
||||
BENCHMARK(WalletCreateTxUsePresetInputsAndCoinSelection, benchmark::PriorityLevel::LOW)
|
||||
BENCHMARK(WalletAvailableCoins, benchmark::PriorityLevel::LOW);
|
||||
BENCHMARK(WalletAvailableCoins, benchmark::PriorityLevel::LOW);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue