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

Method buildProofAugTree

protocol/claim.go:93–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91}
92
93func (c *Claim) buildProofAugTree() {
94 sort.Sort(c.shares)
95 c.pamt = mtree.NewAugTree()
96 c.pamt.RegisterIndex(uint32(c.shareIndex.Int64()))
97 for i, s := range c.shares {
98 c.pamt.Insert(s, uint32(i))
99 }
100 c.pamt.Finalize()
101}
102
103func (c *Claim) buildAugTree() {
104 sort.Sort(c.shares)

Callers 2

CounterBranchMethod · 0.95
HashBranchMethod · 0.95

Implementers 2

Claimprotocol/claim.go
testClaimprotocol/test_claim.go

Calls 3

RegisterIndexMethod · 0.80
InsertMethod · 0.80
FinalizeMethod · 0.80

Tested by

no test coverage detected