MCPcopy Create free account
hub / github.com/SmartPool/smartpool-client / Root

Method Root

mtree/merkle_tree.go:123–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121}
122
123func (mt MerkleTree) Root() NodeData {
124 if mt.finalized {
125 return mt.mtbuf.Front().Value.(node).Data
126 }
127 panic("SP Merkle tree needs to be finalized by calling mt.Finalize()")
128}
129
130func (mt MerkleTree) Branches() map[uint32]BranchTree {
131 if mt.finalized {

Callers 4

RootHashMethod · 0.80
RootHashMethod · 0.80
RootMinMethod · 0.80
RootMaxMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected