()
| 154 | } |
| 155 | |
| 156 | func (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 | |
| 167 | func NewShare(h *types.Header, dif *big.Int) *Share { |
| 168 | return &Share{ |
no test coverage detected