3

I need to run some integration tests that include block sealing. I would like to separate the process of DAG generation from the tests themselves. Is it possible to pregenerate the given DAG with geth?

2

The JavaScript function miner.makeDAG() can be used to generated a DAG for specified block number.

geth --exec "miner.makeDAG(0)" console
1

Please see the updated documentation, since this is the first link when searching.

https://github.com/ethereum/wiki/wiki/Mining#ethash-dag

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.