5 #ifndef BITCOIN_CONSENSUS_MERKLE_H 6 #define BITCOIN_CONSENSUS_MERKLE_H 37 #endif // BITCOIN_CONSENSUS_MERKLE_H
std::vector< uint256 > TransactionMerklePath(const CBlock &block, uint32_t position)
Compute merkle path to the specified transaction.
uint256 BlockWitnessMerkleRoot(const CBlock &block, bool *mutated=nullptr)
uint256 BlockMerkleRoot(const CBlock &block, bool *mutated=nullptr)
uint256 ComputeMerkleRoot(std::vector< uint256 > hashes, bool *mutated=nullptr)