Skip to main content
65 votes

What actually is a DAG?

DAG stands for Directed Acyclic Graph. In Ethereum, a DAG is created every epoch using a version of the Dagger-Hashimoto Algorithm combining Vitalik Buterin's Dagger algorithm and Thaddeus Dryja's ...
Lee's user avatar
  • 8,588
13 votes
Accepted

What does it mean that the next DAG is in X days?

I usually avoid copy pasting info from docs, as many here do, but here I think its appropriate: Ethash uses a DAG (directed acyclic graph) for the proof of work algorithm, this is generated for ...
dragosb's user avatar
  • 2,370
12 votes

What is the current DAG size? When do we expect to hit GPU limits?

As of June of 2017, the DAG size had grown past 2 GB. This other Q & A thread (Where do I see the current dag size) will tell you how to find the exact up-to-date number.
Tesa's user avatar
  • 2,269
10 votes
Accepted

How is DAG related to Merkle Tree?

The Ethash DAG is not related to merkle trees (the word "merkle" does not appear on either wiki page). The Ethash DAG only serves as a big dataset (i.e. too big to fit in memory) for making Ethash ...
cdetrio's user avatar
  • 386
8 votes

What actually is a DAG?

I see that no one mentioned what the DAG really is. As from the description of what the DAG file contains you can see that DAG stands for directed acyclic graph. This is represented in the file as a ...
dragosb's user avatar
  • 2,370
8 votes

Where do I see the current DAG size?

If you need DAG size tracker you can visit investoon.com/tools/dag_size there you can see current DAG size and important epochs.
DronReviews's user avatar
8 votes

Where do I see the current DAG size?

The DAG size is actually calculated by a fixed formula. You can find more details here. The function that does the calculation is: def get_full_size(block_number): sz = DATASET_BYTES_INIT + ...
vutran's user avatar
  • 802
6 votes

Where do I see the current DAG size?

You can check it yourself on your miner: $ ls -l ~/.ethash/ total 1048584 -rw-rw-r-- 1 richard richard 1073739912 Mar 10 20:36 full-R23-0000000000000000 ...... (If you're running a standalone miner, ...
Richard Horrocks's user avatar
6 votes
Accepted

Merkle Tree in IPFS

Every Merkle is a directed acyclic graph (DAG) because each node is accessed by its name. Each branch of Merkle is the hash of its local data, because its fast to access instead of accessing by its ...
Jitendra Kumar. Balla's user avatar
4 votes
Accepted

DAG size (Win 10) vastly larger than expected

I think you may be confusing the DAG with the other chain data. The DAG is only used for mining and will only take up about 2GB. What is taking up the space is the whole blockchain, which you are ...
Tjaden Hess's user avatar
  • 37.2k
4 votes
Accepted

Do i need to be synchronized to blockchain when creating DAG for mining on pool?

No. You don't have to sync to the blockchain if you are mining on a pool. The pool will provide your miner with the appropriate information for your miner to generate the DAG file required for it's ...
BokkyPooBah's user avatar
  • 40.3k
4 votes

GPU can't allocate the DAG in a single chunk. Bailing?

Try ethminer.exe -G --list-devices It will list openCL compatible devices. You have to check that both MEMORY and MAX_ALLOC sizes are bigger than the current DAG (a bit more than 1.4 Gb at the ...
Stephen Thiel's user avatar
4 votes

Mining ETH on HD 6950 DAG allocation problem

It seems the HD6950 is limited to a 512MB allocation even with much more RAM onboard. C:\Program Files\Ethereum 0.9.41\Release>ethminer --list-devices Listing OpenCL devices. FORMAT: [deviceID] ...
mozreactor's user avatar
4 votes
Accepted

Disable automatic pregeneration of DAG?

Setting the --autodag option to false doesn't seem to work. I typed this command in the JS console and it worked: miner.stopAutoDAG() Output: I0708 11:01:29.112749 eth/backend.go:498] Automatic ...
galahad's user avatar
  • 3,930
3 votes
Accepted

Problem while generating DAG for Epoch 1 with geth

There seems to be an open bug related to the issue-issue-3056 The present solution which works for me , I run folowing command before mining again geth makedag <blocknumber> <ethash dir ...
Ajay's user avatar
  • 499
3 votes

Disable automatic pregeneration of DAG?

Just to add to the accepted answer... The --autodag flag doesn't take a value, so it can't be set to false. The DAG will always be pregenerated if mining is enabled from the CLI using the --mine ...
Richard Horrocks's user avatar
3 votes

What actually is a DAG?

This post explains all the associated concepts of DAG and blockchain. I personally found this very useful as it clears a lot of complicated concepts.
Soham Lawar's user avatar
  • 2,567
3 votes

What is the current DAG size? When do we expect to hit GPU limits?

If you need DAG size tracker you can visit investoon.com/tools/dag_size there you can see current DAG size and important epochs.
DronReviews's user avatar
3 votes

How can I check if a DAG file is corrupted?

The solution I found was to parse my wallet's page on dwarfpool looking for the string "DAG corrupted" in its content with a little Node.JS script. It should work with any pool. Obviously if you do ...
Benjamin's user avatar
3 votes

Do i need to be synchronized to blockchain when creating DAG for mining on pool?

Perhaps it depends on the mining software but with ethminer using a pool you don't have to sync at all. The pool does the sync and send you the data to compute. You only have to prepare it and share ...
Nicolas Massart's user avatar
3 votes

Blockchain Recent Scaling Proposals : (Sharding, blocksize , SegWit, GHOST, Lightning, multichains, sidechains, DAGs)

Scaling proposals can be put into 2 categories: off-chain and on-chain. Off-chain proposals generally involve netting small transactions between 2 or more parties outside the blockchain. After a ...
Julien Klepatch's user avatar
3 votes

Blockchain size versus DAG file size

what is the difference between blockchain size and dag file size? These are two different things. The 670 GB in your explanation is the blockchain (state) data, which includes all the blocks and ...
Richard Horrocks's user avatar
2 votes

GPU can't allocate the DAG in a single chunk. Bailing?

I have fixed DAG error with completely uninstall AMD Drivers and installation of 14.1beta custom setup - Display Driver only. The newer 14.12 also didn't work. So if you install good AMD display ...
user5615's user avatar
2 votes
Accepted

Faster way to generate DAG?

Speeding up There is no way you can speed up the DAG creation except: Dedicate mote processing power CPU Dedicate more GPU. What if you could optimise, Well, you can actually propose it as a ...
niksmac's user avatar
  • 9,683
2 votes

pregeneration of DAG does not seem to work with low mining difficulty

Generating the DAG is designed to be memory-hard, I don't think your CPU is the bottle neck. I've come across this before and my solution was your second suggestion, to generate the DAG on a better ...
thanos's user avatar
  • 844
2 votes
Accepted

Why there are two full-R23 files (DAG files) in .ethash folder?

Every 30,000 blocks - where 30,000 blocks is called an epoch - a new DAG file is generated. This mechanism provides the Ethash algorithm something fresh to work on. At the end of 30,000 blocks, ...
Richard Horrocks's user avatar
2 votes
Accepted

My node keep giving checking DAG (ethash dir: /root/.ethash) error

I'm not entirely sure those messages are an indication of the real issue, but there's a potential problem with the flag you mention... --autodag=false isn't doing what you think it's doing. It's ...
Richard Horrocks's user avatar
2 votes

Mining on HD6950 - Getting DAG error

I don't think you can mine with GPUs with less than 4 Gb of memory since the DAG increases with the blockchain size.
Ricardo Barradas's user avatar
2 votes

Generating cache from block_number and seed using Python

Just solved the problem. There were a couple of mistakes I made when implementing the mkcache function in the example above: The seed ...
dugdmitry's user avatar
1 vote
Accepted

SSD wear due to DAG

From the wiki https://github.com/ethereum/wiki/wiki/Ethash: The large dataset is updated once every 30000 blocks, so the vast majority of a miner's effort will be reading the dataset, not making ...
Ismael's user avatar
  • 30.4k

Only top scored, non community-wiki answers of a minimum length are eligible