static fun createDagCache(blockNumber: Long, datasetLookup: Function<Int, Bytes>): Array<UInt32>
(source)
Creates a cache for the DAG at a given block number
blockNumber
- the block number
datasetLookup
- the function generating elements of the DAG
Return
a cache of the DAG up to the block number