|
static std::vector< CTxIn > | createUTXOs (const Config &config, size_t n, node::NodeContext &node) |
| Mine new utxos.
|
|
static CTransactionRef | toTx (const Config &config, CTxIn txin) |
| Create a transaction spending a coinbase utxo.
|
|
static std::vector< CTransactionRef > | oneInOneOutChain (const Config &config, CTxIn utxo, const size_t chainLength) |
| Creates a chain of transactions with 1-input-1-output.
|
|
static std::vector< CTransactionRef > | twoInOneOutTree (const Config &config, node::NodeContext &node, const size_t treeDepth) |
| Creates a tree of transactions with 2-inputs-1-output.
|
|
static void | benchATMP (node::NodeContext &node, benchmark::Bench &bench, const std::vector< CTransactionRef > chainedTxs) |
| Run benchmark on AcceptToMemoryPool.
|
|
static void | benchReorg (const Config &config, node::NodeContext &node, benchmark::Bench &bench, size_t reorgDepth, size_t chainSizePerBlock, bool includeMempoolTxRemoval) |
| Run benchmark that reorganizes blocks with one-input-one-output transaction chains in them.
|
|
static void | benchGenerateNewBlock (const Config &config, node::NodeContext &node, benchmark::Bench &bench, const std::vector< std::vector< CTransactionRef > > &chains) |
|
static void | benchEviction (const Config &, benchmark::Bench &bench, const std::vector< std::vector< CTransactionRef > > &chains, bool revFee=true) |
|
static void | MempoolAcceptance50ChainedTxs (benchmark::Bench &bench) |
| Tests a chain of 50 1-input-1-output transactions.
|
|
static void | MempoolAcceptance500ChainedTxs (benchmark::Bench &bench) |
| Tests a chain of 500 1-input-1-output transactions.
|
|
static void | MempoolAcceptance63TxTree (benchmark::Bench &bench) |
| Test a tree of 63 2-inputs-1-output transactions.
|
|
static void | MempoolAcceptance511TxTree (benchmark::Bench &bench) |
| Test a tree of 511 2-inputs-1-output transactions.
|
|
static void | Reorg10BlocksWith50TxChain (benchmark::Bench &bench) |
| Try to reorg a chain of depth 10 where each block has a 50 tx 1-input-1-output chain.
|
|
static void | Reorg10BlocksWith500TxChain (benchmark::Bench &bench) |
| Try to reorg a chain of depth 10 where each block has a 500 tx 1-input-1-output chain.
|
|
static void | Reorg10BlocksWith50TxChainSkipMempool (benchmark::Bench &bench) |
| Try to reorg a chain of depth 10 where each block has a 50 tx 1-input-1-output chain, skipping the process of removing transactions from the mempool during re-connect.
|
|
static void | Reorg10BlocksWith500TxChainSkipMempool (benchmark::Bench &bench) |
| Try to reorg a chain of depth 10 where each block has a 500 tx 1-input-1-output chain, skipping the process of removing transactions from the mempool during re-connect.
|
|
static void | GenerateBlock50ChainedTxs (benchmark::Bench &bench) |
| Generate a block with 50 1-input-1-output transactions.
|
|
static void | GenerateBlock500ChainedTxs (benchmark::Bench &bench) |
| Generate a block with 500 1-input-1-output transactions.
|
|
static void | EvictChained50Tx (benchmark::Bench &bench) |
| Fill a mempool then evict 2000 x 50 1-input-1-output transactions, CTxMemPool version, in order of increasing fee.
|
|
static void | EvictChained50TxRev (benchmark::Bench &bench) |
| Fill a mempool then evict 2000 x 50 1-input-1-output transactions, CTxMemPool version, in order of decreasing fee.
|
|
| BENCHMARK (MempoolAcceptance50ChainedTxs) |
|
| BENCHMARK (MempoolAcceptance500ChainedTxs) |
|
| BENCHMARK (MempoolAcceptance63TxTree) |
|
| BENCHMARK (MempoolAcceptance511TxTree) |
|
| BENCHMARK (Reorg10BlocksWith50TxChain) |
|
| BENCHMARK (Reorg10BlocksWith500TxChain) |
|
| BENCHMARK (Reorg10BlocksWith50TxChainSkipMempool) |
|
| BENCHMARK (Reorg10BlocksWith500TxChainSkipMempool) |
|
| BENCHMARK (GenerateBlock50ChainedTxs) |
|
| BENCHMARK (GenerateBlock500ChainedTxs) |
|
| BENCHMARK (EvictChained50Tx) |
|
| BENCHMARK (EvictChained50TxRev) |
|