[#ComputeMerkleRoot] = ComputeMerkleRoot :mrdocs: Compute a Merkle root from the provided leaf hashes. If non‐null, `*mutated` is set to true if two identical hashes are paired at any tree level before the odd‐count hash duplication step, and false otherwise. == Synopsis Declared in `<consensus/merkle.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:uint256.adoc[uint256] ComputeMerkleRoot( std::vector<uint256> hashes, bool* mutated = nullptr); ---- == Return Value The Merkle root of the given hashes. == Parameters [cols="1,4"] |=== | Name| Description | *hashes* | The leaf hashes to build the tree from. | *mutated* | If non‐null, receives whether a pair of identical hashes was detected. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#