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

Method AugMerkle

protocol/claim.go:68–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66}
67
68func (c *Claim) AugMerkle() smartpool.SPHash {
69 if c.amt == nil {
70 c.buildAugTree()
71 }
72 return c.amt.RootHash()
73}
74
75func (c *Claim) SetEvidence(shareIndex *big.Int) {
76 c.shareIndex = shareIndex

Callers 1

TestClaimAugMerkleFunction · 0.95

Implementers 2

Claimprotocol/claim.go
testClaimprotocol/test_claim.go

Calls 2

buildAugTreeMethod · 0.95
RootHashMethod · 0.45

Tested by 1

TestClaimAugMerkleFunction · 0.76