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 Answers 2


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

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

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


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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