Questions tagged [difficulty]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
114 views

What is Terminal Total Difficulty (TTD)?

I know there are difficulty and totalDifficulty like mentioned in geth's json-rpc API. difficulty: QUANTITY - integer of the difficulty for this block. totalDifficulty: QUANTITY - integer of the total ...
user avatar
0 votes
1 answer
28 views

What is mining puzzle used in Ethereum?

In case of Bitcoin we know that puzzle used is generating a nonce such that there is a fix number of Zeros in the hash. While in case of Ethereum blocks we couldn't find any similarity can someone put ...
user avatar
  • 21
0 votes
0 answers
32 views

What is the formula to check difficulty on Ethereum genesis block? given ex: genesis block difficulty = 0x0400

I am having trouble understanding something related to calculating difficulty. Target difficulty is described as 2^256 / difficulty . The difficulty of the genesis block is notated as 0x0400 which is ...
user avatar
0 votes
0 answers
18 views

Is it possible to set the difficulty of a block to a certain value on a local network?

I was playing around with a pseudo-random function that uses the difficulty as a source of randomness, and it got me wondering, if there's a way to enforce a certain block.difficulty value on the ...
user avatar
  • 665
0 votes
0 answers
40 views

What does difficulty mean in PoA and PoS chains?

In PoW, the meaning of "difficulty" is quite straightforward and, for instance, fully described in yellow paper. (https://ethereum.github.io/yellowpaper/paper.pdf) But what does the "...
user avatar
0 votes
2 answers
82 views

How can I calculate a given Ethereum block's difficulty?

I understand that mining a block involves trying to generate a hash that is less than or equal to a target dictated by a required difficulty. Ethereum Wiki on Ethash: def mine(full_size, dataset, ...
user avatar
  • 131
0 votes
0 answers
14 views

Block hash in Ethereum vs block hash in Bitcoin [duplicate]

The hash of a block in bitcoin has several leading zeros, and I understand that's how proof-of-work is done, finding a nonce that leads to a number with so many zeros. On the Ethereum network, however,...
user avatar
0 votes
1 answer
28 views

Why does mining difficulty, gas prices raise, yet some transactions still fail?

I would be grateful if someone was able to clarify this, given my assumptions: Mining difficulty is depending on the amount of computational power invested into verifying transactions on the ...
user avatar
2 votes
0 answers
9 views

Possibility of no solution in Ethhash

Referring to http://gavwood.com/paper.pdf, especially Appendix J on Ethhash PoW algorithm It's stated that the nonce is a 64-bit number. The output is a 256-bit number, and it will be compared against ...
user avatar
  • 121
0 votes
0 answers
23 views

How to make sense of mining and pool difficulty?

I saw on my mining app for Ethereum using Ethash, that the maximum achieved was 210 or 220 THash / s, and on another machine, 180 THash / s. And then when I went to https://ethermine.org/statistics , ...
user avatar
3 votes
1 answer
342 views

Does Geth Clique will get affected when difficulty increases to its maximum?

I have started own private network with clique consensus algorithm in GETH. Regardless of miners now sealer will do the job and I have period:5. Difficulty is set 0 initially but over time it is going ...
user avatar
  • 359
1 vote
0 answers
378 views

Probability of finding a block

Today I learned that for Bitcoin, the probability of a hash being valid is approximately 1/(D*2^32), whereas D denotes to the difficulty. Is this also true for Ethereum, or in general for other ...
user avatar
0 votes
1 answer
383 views

Ethereum Difficulty Formula

Is this the current difficulty formula for Ethereum? block_diff = parent_diff + parent_diff // 2048 * max(1 - (block_timestamp - parent_timestamp) // 10, -99) + int(2**((block.number // 100000) - 2)) ...
user avatar
  • 129
1 vote
1 answer
47 views

What if difficulty exceeds the length of a fixed sha256 hash in proof of work?

Hello im a newbie in Blockchain, i got to know some basics, but im confused that what if the difficulty exceeds the length of a sha256 fixed length string example : The fixed length is here 64 (sha256)...
user avatar
3 votes
0 answers
45 views

Blocks can't contain more than 81 transactions

I'm building a private blockchain with Parity clients. For performance testing, I'm submitting many identical transactions. One of the nodes has a GPU miner attached. There are 2 issues I cannot ...
user avatar
  • 730
2 votes
1 answer
102 views

What is the Muir Glacier hardfork?

What is the Muir Glacier hardfork on the Ethereum mainnet?
user avatar
0 votes
0 answers
178 views

Making difficulty static - Geth

I made a setup for a private PoA network with geth. Everything works fine, regarding mining, making transactions, connecting through http and websockets. Now I need to optimize transaction time, I ...
user avatar
  • 75
0 votes
0 answers
34 views

How to define non-exploitability in the difficulty update algorithm?

In enter link description here, it is said that "We have already determined that our current algorithm is highly suboptimal on low volatility and non-exploitability, and at the very least we plan to ...
user avatar
1 vote
0 answers
50 views

Why creating a block that has slightly higher difficulty can beat out any possible forks?

It is said that "The use of (block_timestamp - parent_timestamp) // 10 (* now 9)as the main input variable rather than the time difference directly serves to maintain the coarse-grained nature of the ...
user avatar
1 vote
1 answer
80 views

Static difficulty in 1.8.27 for local network

I am having trouble getting geth 1.8.27 to have a static difficulty on a private network. I followed the instructions from here. But when I test it, the difficulty still increases. I tried again, ...
user avatar
1 vote
1 answer
69 views

What is the philosophy behind the difficulty setting and block generating time?

We know that on the Ethereum mainnet, generating a block always costs about 15 seconds in order to maintain the synchronization. Yet, why it is set to 15 seconds but not a larger or smaller value? ...
user avatar
0 votes
1 answer
30 views

changing source of random number based on reward?

Would this be an acceptable way to produce a random number dependent on the reward? Say if the reward is high enough to entice a miner to manipulate the block then the contract will utilize oraclize. ...
user avatar
0 votes
1 answer
1k views

How to calculate ethash in python?

I am trying to use ethash(hash(blockHeader),nonce) < TARGET to prove that the block was mined with at least a minimum difficulty. Is the formula above correct? When I try to use ehtereum.pow....
user avatar
2 votes
2 answers
224 views

Why is 2048 the mining difficulty bound divisor?

Excerpt from page 6 of the yellow paper: The paper focuses more on the difficulty bomb ε but says little about the rationale of mandating 131072 and 2048 as scalars. I guess the former is merely an ...
user avatar
0 votes
3 answers
172 views

Remove coinbase transactions in private net

I was willing to setup a private ethereum network with low difficulty. I can fix the difficulty of each block to 1 (or constant) to avoid problem of very high difficulty with increase in no of blocks. ...
user avatar
0 votes
1 answer
215 views

Limit Ethereum mining difficulty in a private blockchain

I am creating a private Ethereum blockchain for the sake of transactions management and storage. I don't care about the consensus part, so I changed the difficulty in the genesis file to 0x1. I also ...
user avatar
  • 594
1 vote
1 answer
54 views

Is it possible to use low mining complexity to remove some certain transaction in the past?

I have a question that has concerned me for a long time. It relates to the security and reliability of the blockchain applications. Let's assume I want to build an application that uses Ethereum or ...
user avatar
  • 113
1 vote
0 answers
743 views

How exactly I can calculate difficulty for a given share

Let's say I have a share for ethereum BlockNumber = 1155545, hashNoNonce = ec31d253819762aaa186685e1eb743fc9b058b2e550539952e48abe63b0ad1c8 nonce = 4499658978045803798 What is the formula for ...
user avatar
1 vote
0 answers
236 views

How to calculate difficulty (int) based on (float)

I am trying to adapt my pool based on github.com/sammy007/open-ethereum-pool to nicehash protocol. It works more or less and I am receiving shares already, but I ran into the problem with difficulty ...
user avatar
0 votes
1 answer
258 views

Custom difficulty consensus in a private network.

Suppose in a private network setup , one node runs a standard geth client, and then we add another node to the network using a modified geth, where only the difficulty has been made static. Can this ...
user avatar
1 vote
1 answer
346 views

What happened in 2016 so that "2GB cards stopped working" for mining?

I know this is a terrible question. I am trying to figure out what a friend asked me. We were talking about mining ETH and he said: Back in 2016 2GB cards "stopped working" and that means that if ...
user avatar
  • 1,994
0 votes
1 answer
877 views

Share difficulty and hashrate

Can anybody explain relations or formulas between share difficulty, target and hashrate? Thank you.
user avatar
1 vote
1 answer
533 views

Correlation between network difficulty and total hash rate

I am expecting a linear relationship between difficulty and hash rate. If I generate a scatter plot between the two variables I can see a linear relationship, but also values that are not on the line (...
user avatar
  • 11
2 votes
2 answers
4k views

Time between payouts on Nanopool

I started mining two months ago and within about two weeks of starting I ramped up to 5 GPUs. My first 3 payouts occurred about every 10 days, but the last two have taken 12 days and now the portal ...
user avatar
  • 21
0 votes
1 answer
2k views

How calculate mining hash rate from JUST difficulty and change in block creation times?

How calculate mining hash rate (H) from just difficulty (D) and change in block creation times (ΔT) ? I think H = ΔT / D but I'm having trouble confirming that. Part of the difficulty is that ...
user avatar
1 vote
1 answer
692 views

Difficulty level in private network

This article has a good description on how Ethereum calculates a difficulty level. And, this article mentions that the difficulty is adjusted such that, one block is generated every 12 seconds. The ...
user avatar
2 votes
0 answers
392 views

Solidity - check PoW difficulty

If given block data and a difficulty number, is it possible to verify that the header produced is at or above the provided difficulty from within Solidity? For example, suppose I have the following ...
user avatar
0 votes
1 answer
425 views

What are advantages and disadvantages of low/high difficulty? [duplicate]

What are advantages and disadvantages of low difficulty? What would happen, if it were low? and high! Can you give me some examples and tell me why ethereum developers picked 17,179,869,184 for ...
user avatar
  • 149
2 votes
1 answer
912 views

Why is avg. block time growing so much latley [duplicate]

how come average block time is growing this much latley? In March it was around 14.5 and today is around 24. I know that hash rate is growing fast, but shouldn't every difficulty adjustment reset avg. ...
user avatar
  • 351
0 votes
1 answer
2k views

Using https://etherchain.org API

When I request https://etherchain.org/api/difficulty using python 3.6 I get HTTPError: Forbidden. Does anyone know the solution? import json from urllib.request import urlopen from pandas.io.json ...
user avatar
3 votes
1 answer
221 views

GPU gave 3 Eth in 3 weeks, then added another GPU and no ETH after 1.5 weeks?

I got the first 3 Eth in 3 weeks and then I decided to add another card (RX480s). I stopped the mining (CTRL - C) Then stopped geth node (CTRL - C) Shutdown PC and installed extra GPU. Ran geth test ...
user avatar
2 votes
1 answer
3k views

What does the difficulty value represent in a Geth genesis block config?

If you want to start a private net with Geth, then you need to create a Genesis Block. You specify the attributes of this block through a config file. One of these configurations is 'difficulty'. An ...
user avatar
  • 356
1 vote
1 answer
1k views

Chain Specification "difficulty" vs. Hash Rate?

What does "difficulty" refer to in the chain specification, if actual difficulty is determined by hashrate? I know that "difficulty" went down after the ETH/ETC fork, but why then is difficulty in ...
user avatar
  • 1,994
28 votes
3 answers
4k views

What is the exact "longest chain" rule implemented in the Ethereum "Homestead" protocol?

This paper from 2016 claims (in section 3.3.2, speaking about the actual Ethereum implementation as opposed to the specification) that: although uncle blocks that are included in a block receive a ...
user avatar
1 vote
1 answer
439 views

How can my Rig slow down that much in short period?

I wonder why my Rig used to mine 1Ether in 24h and now it takes up to 38h for 1. I have moved the Rig to another place, could that be the reason? Thanks
user avatar
2 votes
1 answer
2k views

How difficulty is related to mining in ethereum blockchain ?

I am very much curious to know how difficulty is related to the mining process and how the static difficulty will effect the mining process ?
user avatar
6 votes
1 answer
483 views

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

I'm new to Ethereum and I'm trying to make a private Ethereum network, with some customization. I've done the following: 1) installed geth 1.5.4-stable from source 2) modified params/protocol_params....
user avatar
  • 61
8 votes
1 answer
2k views

Ethereum's definition of difficulty and hash rate

I'm trying to make sense of geth's hashrate and Ethereum's difficulty setting. I'm running a private test net and set the difficulty to a fixed value (to big.NewInt(250)) as described by https://...
user avatar
  • 304
5 votes
1 answer
740 views

Proof of Work figures

I am focused on understanding Proof of Work (PoW) vs Proof of Stake (PoS). One idea I liked is that we can see the mining of a block as a lottery of probability P, where I buy a ticket of cost C ...
user avatar
  • 2,351
3 votes
2 answers
1k views

Is it possible to decrease difficulty of ongoing private Ethereum blockchain?

Please note that my question is in addition to following question: How do I decrease the difficulty on a private testnet?. I am sorry that, I am lost in its answers. [Q] Is it possible to decrease ...
user avatar
  • 7,689