Questions tagged [mining]

Mining is the process by which it is ensured that the blockchain is the same across all nodes. A miner that solves a cryptological problem related to the previous transactions on the blockchain is rewarded with Ether.

Filter by
Sorted by
Tagged with
25 votes
3 answers
10k views

What is the default ordering of transactions during mining?

I know that the yellow paper does not specify how transactions are to be ordered in a block and this is up to the miner to decide. But I am interested in how this is practically handled (I assume not ...
user avatar
  • 8,114
94 votes
3 answers
35k views

What is an uncle/ommer block?

The Ethereum blockchain is described as containing "ommer" blocks, usually called "uncle" blocks by the general public. What is an ommer/uncle block, and why are they needed?
user avatar
47 votes
2 answers
32k views

What is nonce in Ethereum? How does it prevent double spending?

recently I got fascinated by blockchain, and started learning Ethereum. I came across the concept of the nonce in Ethereum. After researching I found out that nonce is used for two purposes. a. To ...
user avatar
  • 757
19 votes
2 answers
3k views

In a private blockchain, why do miners keep adding empty blocks to the blockchain?

I have been working on a private blockchain and observed that a miner, when started, keeps on adding empty blocks with no transactions to the blockchain. Why is this happening? It doesn't make any ...
user avatar
  • 3,835
53 votes
3 answers
24k views

How to reduce the chances of your Ethereum wallet getting hacked?

Summary The hack that occurred on May 12 2016 to steal 7,218 ethers from Patrick only affects miners where: Incoming RPC connections from the Internet on TCP port 8545 are forwarded to the machine ...
user avatar
20 votes
1 answer
2k views

What is the order and concurrency behavior of multiple calls to a contract in a single transaction?

Suppose a contract has three call APIs that have side effects. What's the behavior if I try to: Call all three APIs from one address (i.e. issue three transactions if from nodejs). Are all three ...
user avatar
  • 4,181
33 votes
3 answers
37k views

How do miners profit post-PoS, if at all, how will new miners get their start, and who will execute the EVM byte code (and why)?

I've been following the release of Casper/PoS closely, and I'm curious about a few details. How will miners make money (even if GPUs are less valuable)? Are spare compute resources (say RAM, CPU) ...
user avatar
  • 491
16 votes
2 answers
8k views

How does the Ethereum Homestead difficulty adjustment algorithm work?

From From EIP 2, the Homestead difficulty adjustment algorithm is: block_diff = parent_diff + parent_diff // 2048 * max(1 - (block_timestamp - parent_timestamp) // 10, -99) + int(2**...
user avatar
39 votes
4 answers
165k views

Is CPU mining even worth the Ether?

I would like to start mining Ether, but my GPU isn't the greatest and I don't really want to spend the money on a dedicated rig. Is mining from my CPU (in a Linux environment) still worth the Ether? ...
user avatar
30 votes
6 answers
12k views

How to make miner to mine only when there are Pending Transactions?

As of now the geth miner running on my system mines even empty blocks. All i wanted is miner should mine only when there are Transactions to mine, after mining the miner should immediately sleep. ...
user avatar
  • 867
24 votes
2 answers
79k views

What's the best hardware for Mining Ether?

As my title says, I am a complete newbie to the Ethereum Project, but not to the cryptography in general. Although this will be the first time I will consider investing in the mining process. And I ...
user avatar
  • 249
8 votes
2 answers
6k views

What is GHOST and what is its relationship to Frontier and Casper?

As high-level as possible without losing important meaning, what's the intuition behind GHOST? How is it currently implemented in Frontier? What will be different with GHOST in Casper?
user avatar
  • 78.3k
88 votes
6 answers
172k views

What is the total supply of Ether?

In Bitcoin, the total supply is capped at 21 million BTC. Is the total supply of Ether capped? How much will be mined before the Proof of Stake (POS) transition, and how will POS affect the issuance ...
user avatar
  • 34.2k
25 votes
1 answer
23k views

How is the Mining Difficulty calculated on Ethereum?

Having read various pieces of documentation, it's still not completely clear to me what dictates the difficulty rise, and how Ethereum difficulty levels differ to Bitcoin. In the past week ...
user avatar
26 votes
3 answers
91k views

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

I have two mining rigs running, one with 2GB GPUs and one with 8GB cards. Recently, the rig with the 2GB cards failed due to the inability to upload the DAG to the GPU. What's the current DAG size ...
user avatar
  • 31.4k
29 votes
4 answers
13k views

How do I decrease the difficulty on a private testnet?

I've created a private test network. On the genesis.json file, I've changed the difficulty to 1. Yet, mining a block still takes hours on my CPU. I suspect that is due to some configuration related to ...
user avatar
  • 3,147
38 votes
6 answers
37k views

How to get ether on public testnet?

I am a newbee to Ethereum and doing some research. I have installed the Ethereum Wallet app and synchronized the testnet. However, to deploy my first contract in testnet, it requires some Ether, so ...
user avatar
19 votes
3 answers
6k views

How do Ethereum mining nodes maintain a time consistent with the network?

We have established that the timestamp on a parent block has to be before the timestamp of a child block in Can a child block have an earlier timestamp than the parent block?. How are differences in ...
user avatar
20 votes
2 answers
5k views

By what mechanism are ASIC-based miners made less favourable?

Bitcoin mining is dominated by miners that use ASIC-based mining equipment, thereby skewing the mining rewards in favour of those able to afford large numbers of ASIC mining rigs. Ethereum prevents ...
user avatar
25 votes
1 answer
32k views

Geth node starts to sync from the beginning after fast sync

I have synced using the --fast command. Now how should I proceed? I tried stopping it, and then running geth --rpc but it says: Last Header #1311471 Last Block #0 Fast Block #1310224 What should I ...
user avatar
  • 353
6 votes
2 answers
2k views

Are mineable tokens possible?

I'm a bit puzzled about the ethereum.org/token example which states further down in the advanced examples that it can be coupled to proof-of-work. I really like the idea of mining a token. The example ...
user avatar
  • 31.4k
9 votes
2 answers
2k views

Are Transactions originating from one account mined in nonce order?

Discussion in another thread raises an interesting point. how many transactions could be included in a new block from the same account? Since miners can opt to omit a known transaction from the ...
user avatar
  • 51.3k
25 votes
2 answers
17k views

When will the difficulty bomb make mining impossible?

I know the answer must be out there in the code already, but I couldn't figure out where exactly. Could someone do the maths for me: With block 200k the difficulty bomb started increasing the ...
user avatar
  • 31.4k
21 votes
3 answers
6k views

Why does ethereum creates a new block,without even a single transaction? [duplicate]

I'm running a private Ethereum blockchain. When I set one of the nodes to mine, that node continuously creates blocks, even if there are no transactions inside of it. What is the purpose of this?
user avatar
16 votes
2 answers
114k views

How fast should be an internet connection to mine ETH?

How fast should be an internet connection to mine ethereum and don't have connection issues? What about ping? And, how many GB of data would get downloaded over a month period? I have a 250GB limit.
user avatar
  • 871
12 votes
2 answers
3k views

Why am I getting less than 5 Ether per block?

Was something changed recently? I've been getting less and less ether per block - is this tied to difficulty level? I thought difficulty would affect the rate of mining a block, not the number of ...
user avatar
  • 31.4k
13 votes
1 answer
2k views

Is it possible to change the block target time?

We're curious to know what factors go into block times in a private network with a limited number of validators. Is this fixed or can it be parameterized in any way? How is it related to block times ...
user avatar
  • 1,308
3 votes
2 answers
1k views

Would a minimal gas price tx ever be mined?

I want to mine and charge a minimal gas price (like the minimum required to prevent infinite loops and such), to enable many smaller transactions to be confirmed super cheaply and to lower the cost of ...
user avatar
  • 1,228
3 votes
2 answers
8k views

How long to wait for pending transactions?

Is there any timeout for pending transactions? How long to wait before re-sending the transaction. I am sending multiple transactions and need to track the status of all those transactions. But I am ...
user avatar
3 votes
1 answer
2k views

Does my mining situation sound normal?

I've tried overnight mining and have had no luck. I first created an account using geth account new. Then I use geth --rpc to stay in sync with the blockchain and ethereum -G to start the minining ...
user avatar
17 votes
2 answers
7k views

How to make Ethereum mining difficulty static for a private chain?

I have implemented private chain in ethereum but its difficulty level increases by time as a result the mining process slows down. Is it possible to make the difficulty static or disable it in testnet....
user avatar
8 votes
2 answers
2k views

Does a mining reward transaction have a hash?

I can't find a mining reward transaction hash for a given block. I can see the block hash, all the transactions inside the block, etc. But the mining reward transaction is not listed among the details....
user avatar
  • 31.4k
6 votes
3 answers
2k views

How can i automatically divide payments from mining

I run a mining farm along with other partners. Using eth-proxy I can only set one payout address for each machine. I'd like to setup a contract so that any payments that go to the primary mining ...
user avatar
8 votes
2 answers
5k views

Sync blockchain while mining?

I'm new to ether mining. Do I have to sync with the blockchain while mining? Currently I'm using ethminer for solo mining with GPU and geth to sync with blockchain.
user avatar
  • 155
2 votes
1 answer
2k views

Why drivers version influence hash rate?

It's well known now that the very same GPU with the 16.4.1 drivers has a lower hash rate than with the 15.12 I absolutely don't have the beginning of an idea to why. Anyone?
user avatar
  • 4,539
10 votes
1 answer
1k views

What happens to transactions in Uncles?

I understand that each node has a transaction pool, which is used for adding transactions to the block. What happens to the transactions when a miner's block is declared invalid? Also, how are ...
user avatar
  • 175
1 vote
2 answers
16k views

Does network latency significantly affect mining rewards?

I have a slightly flakey internet connection (no good providers in the area). I can stream at reasonable speeds (Megabits) but there is a certain amount of jitter in the packet latency. Mining is ...
user avatar
  • 635
41 votes
1 answer
268k views

How to Mine Ether and use Ethereum on Windows?

Which programs should be installed and what do you need to do to start mining Ether and use Ethereum?
user avatar
  • 933
18 votes
3 answers
49k views

Where do I see the current DAG size?

Where do I see the current, exact DAG size? Is it being tracked on a website somewhere, or is it something I can check on my miner?
user avatar
  • 181
7 votes
1 answer
9k views

Dag generation failure: Invalid Argument

I have been mining for a while now. I restarted my computer this evening and I have been receiving the error " DAG Generation Failure. Reason: Invalid argument" when running the same bat file I always ...
user avatar
15 votes
3 answers
5k views

Why do we need both nonce and mixhash values in a block?

Looking over the sample genesis blocks, I notice that both nonce and mixhash values can be assigned independent values. Reading the yellow paper it's mentioned that: mixhash: is a 256 - bit hash ...
user avatar
  • 5,154
6 votes
2 answers
4k views

How to query the amount of mining reward from a certain block?

I want to write a script to analyze mining rewards. What is the best way to query for the amount of mining rewards of a certain block? It seems possible to query the address of the lucky miner: web3....
user avatar
5 votes
1 answer
1k views

Connection between peers never happen on custom blockchain [duplicate]

My app connects and mine the same blokchain on every instance, it uses the same genesis.json and network ids. Genesis: https://github.com/AugustoL/OpenContent/blob/master/genesis.json Web3 service ...
user avatar
  • 215
4 votes
4 answers
42k views

What aspect affects the GPU's mining speed?

I recently got my Asus Radeon RX 580 8GB and decided to test it out on mining. It has default core clock speed 1380 MHz, and memory clock 2000 MHz. Now, my first test with stock settings (no OC, no ...
user avatar
  • 41
15 votes
1 answer
8k views

How do I create my own mining-pool?

I have about 900+ Mh worth of power and I'm thinking of creating my own pool and putting all my miners in the pool instead of pooling with others. However I've found no instruction on how to do this. ...
user avatar
13 votes
6 answers
9k views

Why not mine my own transactions?

I have a contract which needs to be updated occasionally. So I create a transaction, sign it and send it to the network. When I do that, I state a gas-price. The higher the gas-price is, the faster ...
user avatar
7 votes
2 answers
715 views

Can a child block have an earlier timestamp than the parent block?

From From EIP 2, the Homestead difficulty adjustment algorithm is: block_diff = parent_diff + parent_diff // 2048 * max(1 - (block_timestamp - parent_timestamp) // 10, -99) + int(2**...
user avatar
1 vote
2 answers
1k views

What are offchain and onchain Transactions?

What is meant by off-chain and on-chain transactions? I don't get the meaning of off-chain and on-chain in general.
user avatar
  • 345
6 votes
1 answer
14k views

How can I calculate the average time to mine a block?

How can I calculate the average time to mine a block knowing the current global hashrate? My first gues is very simple: (global_hashrate / my_hashrate) * 15 [s]. So in my case (850 000 H/s) it will ...
user avatar
  • 853
5 votes
1 answer
5k views

Why does miner.start() return null / does not start in private testchain?

I created a private testchain following an answer I was given to another question. It works fine for the most part I've had issues using miner.start(). It takes a long time to start. I'm surprised ...
user avatar
  • 821