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

Method buildAugTree

protocol/claim.go:103–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101}
102
103func (c *Claim) buildAugTree() {
104 sort.Sort(c.shares)
105 c.amt = mtree.NewAugTree()
106 for i, s := range c.shares {
107 c.amt.Insert(s, uint32(i))
108 }
109 c.amt.Finalize()
110}

Callers 3

MinMethod · 0.95
MaxMethod · 0.95
AugMerkleMethod · 0.95

Implementers 2

Claimprotocol/claim.go
testClaimprotocol/test_claim.go

Calls 2

InsertMethod · 0.80
FinalizeMethod · 0.80

Tested by

no test coverage detected