#include <consensus/merkle.h>
#include <test/util/random.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>
Go to the source code of this file.
◆ BlockBuildMerkleTree()
static uint256 BlockBuildMerkleTree |
( |
const CBlock & |
block, |
|
|
bool * |
fMutated, |
|
|
std::vector< uint256 > & |
vMerkleTree |
|
) |
| |
|
static |
◆ BlockGetMerkleBranch()
static std::vector< uint256 > BlockGetMerkleBranch |
( |
const CBlock & |
block, |
|
|
const std::vector< uint256 > & |
vMerkleTree, |
|
|
int |
nIndex |
|
) |
| |
|
static |
◆ BOOST_AUTO_TEST_CASE() [1/6]
BOOST_AUTO_TEST_CASE |
( |
merkle_test |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [2/6]
BOOST_AUTO_TEST_CASE |
( |
merkle_test_BlockWitness |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [3/6]
BOOST_AUTO_TEST_CASE |
( |
merkle_test_empty_block |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [4/6]
BOOST_AUTO_TEST_CASE |
( |
merkle_test_LeftSubtreeRightSubtree |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [5/6]
BOOST_AUTO_TEST_CASE |
( |
merkle_test_OddTxWithRepeatedLastTx_block |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [6/6]
BOOST_AUTO_TEST_CASE |
( |
merkle_test_oneTx_block |
| ) |
|
◆ ComputeMerkleRootFromBranch()
static uint256 ComputeMerkleRootFromBranch |
( |
const uint256 & |
leaf, |
|
|
const std::vector< uint256 > & |
vMerkleBranch, |
|
|
uint32_t |
nIndex |
|
) |
| |
|
static |
◆ ctz()
static int ctz |
( |
uint32_t |
i | ) |
|
|
inlinestatic |