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 <optional.h> | #include <optional.h> | ||||
#include <test/util.h> | #include <test/util.h> | ||||
#include <test/util/mining.h> | |||||
#include <validationinterface.h> | #include <validationinterface.h> | ||||
#include <wallet/wallet.h> | #include <wallet/wallet.h> | ||||
static void WalletBalance(benchmark::State &state, const bool set_dirty, | static void WalletBalance(benchmark::State &state, const bool set_dirty, | ||||
const bool add_watchonly, const bool add_mine) { | const bool add_watchonly, const bool add_mine) { | ||||
const auto &ADDRESS_WATCHONLY = ADDRESS_BCHREG_UNSPENDABLE; | const auto &ADDRESS_WATCHONLY = ADDRESS_BCHREG_UNSPENDABLE; | ||||
const Config &config = GetConfig(); | const Config &config = GetConfig(); | ||||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |