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