Fabcoin Core  0.16.2
P2P Digital Currency
Functions
merkle.cpp File Reference
#include <consensus/merkle.h>
#include <hash.h>
#include <utilstrencodings.h>
Include dependency graph for merkle.cpp:

Go to the source code of this file.

Functions

uint256 ComputeMerkleRoot (const std::vector< uint256 > &leaves, bool *mutated)
 
std::vector< uint256ComputeMerkleBranch (const std::vector< uint256 > &leaves, uint32_t position)
 
uint256 ComputeMerkleRootFromBranch (const uint256 &leaf, const std::vector< uint256 > &vMerkleBranch, uint32_t nIndex)
 
uint256 BlockMerkleRoot (const CBlock &block, bool *mutated)
 
uint256 BlockWitnessMerkleRoot (const CBlock &block, bool *mutated)
 
std::vector< uint256BlockMerkleBranch (const CBlock &block, uint32_t position)
 

Function Documentation

std::vector<uint256> BlockMerkleBranch ( const CBlock block,
uint32_t  position 
)

Definition at line 179 of file merkle.cpp.

Here is the call graph for this function:

uint256 BlockMerkleRoot ( const CBlock block,
bool *  mutated 
)

Definition at line 158 of file merkle.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

uint256 BlockWitnessMerkleRoot ( const CBlock block,
bool *  mutated 
)

Definition at line 168 of file merkle.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::vector<uint256> ComputeMerkleBranch ( const std::vector< uint256 > &  leaves,
uint32_t  position 
)

Definition at line 139 of file merkle.cpp.

Here is the caller graph for this function:

uint256 ComputeMerkleRoot ( const std::vector< uint256 > &  leaves,
bool *  mutated 
)

Definition at line 133 of file merkle.cpp.

Here is the caller graph for this function:

uint256 ComputeMerkleRootFromBranch ( const uint256 leaf,
const std::vector< uint256 > &  vMerkleBranch,
uint32_t  nIndex 
)

Definition at line 145 of file merkle.cpp.

Here is the call graph for this function: