MCPcopy Create free account
hub / github.com/ElementsProject/elements / CalculateExtraRoot

Method CalculateExtraRoot

src/primitives/block.cpp:68–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68uint256 DynaFedParamEntry::CalculateExtraRoot() const
69{
70 std::vector<uint256> extra_leaves;
71 extra_leaves.push_back(SerializeHash(m_fedpeg_program, SER_GETHASH, 0));
72 extra_leaves.push_back(SerializeHash(m_fedpegscript, SER_GETHASH, 0));
73 extra_leaves.push_back(SerializeHash(m_extension_space, SER_GETHASH, 0));
74 return ComputeFastMerkleRoot(extra_leaves);
75}
76
77uint256 DynaFedParams::CalculateRoot() const
78{

Callers 2

paramEntryToJSONFunction · 0.80

Calls 3

SerializeHashFunction · 0.85
ComputeFastMerkleRootFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected