Changeset View
Changeset View
Standalone View
Standalone View
src/bench/duplicate_inputs.cpp
// Copyright (c) 2011-2019 The Bitcoin Core developers | // Copyright (c) 2011-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 <chain.h> | #include <chain.h> | ||||
#include <chainparams.h> | #include <chainparams.h> | ||||
#include <coins.h> | #include <coins.h> | ||||
#include <config.h> | #include <config.h> | ||||
#include <consensus/merkle.h> | #include <consensus/merkle.h> | ||||
#include <consensus/validation.h> | #include <consensus/validation.h> | ||||
#include <miner.h> | |||||
#include <policy/policy.h> | |||||
#include <pow.h> | #include <pow.h> | ||||
#include <script/scriptcache.h> | #include <script/scriptcache.h> | ||||
#include <txmempool.h> | #include <txmempool.h> | ||||
#include <validation.h> | #include <validation.h> | ||||
#include <validationinterface.h> | |||||
#include <list> | #include <list> | ||||
#include <vector> | #include <vector> | ||||
static void DuplicateInputs(benchmark::State &state) { | static void DuplicateInputs(benchmark::State &state) { | ||||
const CScript SCRIPT_PUB{CScript(OP_TRUE)}; | const CScript SCRIPT_PUB{CScript(OP_TRUE)}; | ||||
const CChainParams &chainparams = Params(); | const CChainParams &chainparams = Params(); | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |