Bitcoin Core 29.99.0
P2P Digital Currency
Functions
connectblock.cpp File Reference
#include <addresstype.h>
#include <bench/bench.h>
#include <interfaces/chain.h>
#include <kernel/cs_main.h>
#include <script/interpreter.h>
#include <sync.h>
#include <test/util/setup_common.h>
#include <validation.h>
#include <cassert>
#include <vector>
Include dependency graph for connectblock.cpp:

Go to the source code of this file.

Functions

CBlock CreateTestBlock (TestChain100Setup &test_setup, const std::vector< CKey > &keys, const std::vector< CTxOut > &outputs, int num_txs=1000)
 
std::pair< std::vector< CKey >, std::vector< CTxOut > > CreateKeysAndOutputs (const CKey &coinbaseKey, size_t num_schnorr, size_t num_ecdsa)
 
void BenchmarkConnectBlock (benchmark::Bench &bench, std::vector< CKey > &keys, std::vector< CTxOut > &outputs, TestChain100Setup &test_setup)
 
static void ConnectBlockAllSchnorr (benchmark::Bench &bench)
 
static void ConnectBlockMixedEcdsaSchnorr (benchmark::Bench &bench)
 
static void ConnectBlockAllEcdsa (benchmark::Bench &bench)
 
 BENCHMARK (ConnectBlockAllSchnorr, benchmark::PriorityLevel::HIGH)
 
 BENCHMARK (ConnectBlockMixedEcdsaSchnorr, benchmark::PriorityLevel::HIGH)
 
 BENCHMARK (ConnectBlockAllEcdsa, benchmark::PriorityLevel::HIGH)
 

Function Documentation

◆ BENCHMARK() [1/3]

◆ BENCHMARK() [2/3]

◆ BENCHMARK() [3/3]

◆ BenchmarkConnectBlock()

void BenchmarkConnectBlock ( benchmark::Bench bench,
std::vector< CKey > &  keys,
std::vector< CTxOut > &  outputs,
TestChain100Setup test_setup 
)

Definition at line 92 of file connectblock.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ConnectBlockAllEcdsa()

static void ConnectBlockAllEcdsa ( benchmark::Bench bench)
static

Definition at line 122 of file connectblock.cpp.

Here is the call graph for this function:

◆ ConnectBlockAllSchnorr()

static void ConnectBlockAllSchnorr ( benchmark::Bench bench)
static

Definition at line 107 of file connectblock.cpp.

Here is the call graph for this function:

◆ ConnectBlockMixedEcdsaSchnorr()

static void ConnectBlockMixedEcdsaSchnorr ( benchmark::Bench bench)
static

Definition at line 114 of file connectblock.cpp.

Here is the call graph for this function:

◆ CreateKeysAndOutputs()

std::pair< std::vector< CKey >, std::vector< CTxOut > > CreateKeysAndOutputs ( const CKey coinbaseKey,
size_t  num_schnorr,
size_t  num_ecdsa 
)

Definition at line 71 of file connectblock.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateTestBlock()

CBlock CreateTestBlock ( TestChain100Setup test_setup,
const std::vector< CKey > &  keys,
const std::vector< CTxOut > &  outputs,
int  num_txs = 1000 
)

Definition at line 24 of file connectblock.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: