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

Method Branches

mtree/merkle_tree.go:130–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128}
129
130func (mt MerkleTree) Branches() map[uint32]BranchTree {
131 if mt.finalized {
132 return *(mt.mtbuf.Front().Value.(node).Branches)
133 }
134 panic("SP Merkle tree needs to be finalized by calling mt.Finalize()")
135}
136
137func (mt MerkleTree) Indices() []uint32 {
138 return mt.orderedIndexes

Callers 4

AllBranchesArrayMethod · 0.80
AllDAGElementsMethod · 0.80
CounterBranchArrayMethod · 0.80
HashBranchArrayMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected