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)
 This benchmark is expected to be slower than the AllSchnorr or Ecdsa benchmark because it uses transactions with both Schnorr and Ecdsa signatures which requires the transaction to be hashed multiple times for the different signature algorithms. More...
 
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 128 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

This benchmark is expected to be slower than the AllSchnorr or Ecdsa benchmark because it uses transactions with both Schnorr and Ecdsa signatures which requires the transaction to be hashed multiple times for the different signature algorithms.

Definition at line 120 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: