()
| 61 | } |
| 62 | |
| 63 | func (dt DagTree) RootHash() smartpool.SPHash { |
| 64 | if dt.finalized { |
| 65 | return smartpool.SPHash(dt.Root().(DagData)) |
| 66 | } |
| 67 | panic("SP Merkle tree needs to be finalized by calling mt.Finalize()") |
| 68 | } |
| 69 | |
| 70 | // return only one array with necessary hashes for each |
| 71 | // index in order. Element's hash and root are not included |
no test coverage detected