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

Method DAGProofArray

ethereum/share.go:156–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

154}
155
156func (s *Share) DAGProofArray() []*big.Int {
157 if s.dt == nil {
158 s.buildDagTree()
159 }
160 result := []*big.Int{}
161 for _, be := range s.dt.AllBranchesArray() {
162 result = append(result, be.Big())
163 }
164 return result
165}
166
167func NewShare(h *types.Header, dif *big.Int) *Share {
168 return &Share{

Callers 1

VerifyClaimMethod · 0.80

Implementers 2

testShareprotocol/test_share.go
Shareethereum/share.go

Calls 3

buildDagTreeMethod · 0.95
AllBranchesArrayMethod · 0.80
BigMethod · 0.45

Tested by

no test coverage detected