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

Method RegisterIndex

mtree/merkle_tree.go:36–41  ·  view source on GitHub ↗

register indexes to build branches

(indexes ...uint32)

Source from the content-addressed store, hash-verified

34
35// register indexes to build branches
36func (mt *MerkleTree) RegisterIndex(indexes ...uint32) {
37 for _, i := range indexes {
38 mt.indexes[i] = true
39 mt.orderedIndexes = append(mt.orderedIndexes, i)
40 }
41}
42
43func (mt *MerkleTree) SetHashFunction(_h hashFunc) {
44 mt.h = _h

Callers 2

buildProofAugTreeMethod · 0.80
buildDagTreeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected