Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Functions
merkle.h File Reference
#include <vector>
#include <primitives/block.h>
#include <uint256.h>
Include dependency graph for merkle.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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

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 = nullptr 
)

Definition at line 44 of file merkle.cpp.

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