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

Method DAGElementArray

ethereum/share.go:145–154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143}
144
145func (s *Share) DAGElementArray() []*big.Int {
146 if s.dt == nil {
147 s.buildDagTree()
148 }
149 result := []*big.Int{}
150 for _, w := range s.dt.AllDAGElements() {
151 result = append(result, w.ToUint256Array()...)
152 }
153 return result
154}
155
156func (s *Share) DAGProofArray() []*big.Int {
157 if s.dt == nil {

Callers 1

VerifyClaimMethod · 0.80

Implementers 2

testShareprotocol/test_share.go
Shareethereum/share.go

Calls 3

buildDagTreeMethod · 0.95
AllDAGElementsMethod · 0.80
ToUint256ArrayMethod · 0.80

Tested by

no test coverage detected