Changeset View
Changeset View
Standalone View
Standalone View
src/bench/wallet_balance.cpp
// Copyright (c) 2012-2019 The Bitcoin Core developers | // Copyright (c) 2012-2019 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include <bench/bench.h> | #include <bench/bench.h> | ||||
#include <config.h> | #include <config.h> | ||||
#include <interfaces/chain.h> | #include <interfaces/chain.h> | ||||
#include <node/context.h> | #include <node/context.h> | ||||
#include <validationinterface.h> | |||||
#include <wallet/wallet.h> | |||||
#include <test/util/mining.h> | #include <test/util/mining.h> | ||||
#include <test/util/setup_common.h> | #include <test/util/setup_common.h> | ||||
#include <test/util/wallet.h> | #include <test/util/wallet.h> | ||||
#include <validationinterface.h> | |||||
#include <wallet/wallet.h> | #include <optional> | ||||
static void WalletBalance(benchmark::Bench &bench, const bool set_dirty, | static void WalletBalance(benchmark::Bench &bench, const bool set_dirty, | ||||
const bool add_watchonly, const bool add_mine) { | const bool add_watchonly, const bool add_mine) { | ||||
TestingSetup test_setup{ | TestingSetup test_setup{ | ||||
CBaseChainParams::REGTEST, | CBaseChainParams::REGTEST, | ||||
/* extra_args */ | /* extra_args */ | ||||
{ | { | ||||
"-nodebuglogfile", | "-nodebuglogfile", | ||||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |