Changeset View
Changeset View
Standalone View
Standalone View
src/bench/block_assemble.cpp
Show All 10 Lines | |||||
#include <test/util/wallet.h> | #include <test/util/wallet.h> | ||||
#include <txmempool.h> | #include <txmempool.h> | ||||
#include <validation.h> | #include <validation.h> | ||||
#include <vector> | #include <vector> | ||||
static void AssembleBlock(benchmark::State &state) { | static void AssembleBlock(benchmark::State &state) { | ||||
const Config &config = GetConfig(); | const Config &config = GetConfig(); | ||||
RegTestingSetup test_setup; | TestingSetup test_setup{ | ||||
CBaseChainParams::REGTEST, | |||||
/* extra_args */ | |||||
{ | |||||
"-nodebuglogfile", | |||||
"-nodebug", | |||||
}, | |||||
}; | |||||
const CScript redeemScript = CScript() << OP_DROP << OP_TRUE; | const CScript redeemScript = CScript() << OP_DROP << OP_TRUE; | ||||
const CScript SCRIPT_PUB = | const CScript SCRIPT_PUB = | ||||
CScript() << OP_HASH160 << ToByteVector(CScriptID(redeemScript)) | CScript() << OP_HASH160 << ToByteVector(CScriptID(redeemScript)) | ||||
<< OP_EQUAL; | << OP_EQUAL; | ||||
const CScript scriptSig = CScript() << std::vector<uint8_t>(100, 0xff) | const CScript scriptSig = CScript() << std::vector<uint8_t>(100, 0xff) | ||||
<< ToByteVector(redeemScript); | << ToByteVector(redeemScript); | ||||
Show All 35 Lines |