Bitcoin ABC 0.30.5
P2P Digital Currency
Functions
merkle.cpp File Reference
#include <consensus/merkle.h>
#include <hash.h>
Include dependency graph for merkle.cpp:

Go to the source code of this file.

Functions

uint256 ComputeMerkleRoot (std::vector< uint256 > hashes, bool *mutated)
 
uint256 BlockMerkleRoot (const CBlock &block, bool *mutated)
 Compute the Merkle root of the transactions in a block. More...
 

Function Documentation

◆ BlockMerkleRoot()

uint256 BlockMerkleRoot ( const CBlock block,
bool *  mutated = nullptr 
)

Compute the Merkle root of the transactions in a block.

*mutated is set to true if a duplicated subtree was found.

Definition at line 69 of file merkle.cpp.

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

◆ ComputeMerkleRoot()

uint256 ComputeMerkleRoot ( std::vector< uint256 hashes,
bool *  mutated 
)

Definition at line 44 of file merkle.cpp.

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