Skip to main content

Questions tagged [difficulty]

Filter by
Sorted by
Tagged with
0 votes
0 answers
28 views

Why (historically in PoW) is total difficulty not stored in the block header?

The system for managing total difficulty is that it is computed and stored on each node, but not in the block header. The way it has been stored has undergone revisions, back in 2015 (in Go-Ethereum) ...
BipedalJoe's user avatar
2 votes
0 answers
43 views

Calculating difficulty and target with 256 bits

Why do the yellow paper and Ethereum implementations use 2**256 instead of 2**256 - 1 when calculating hash target from difficulty? The Ethereum Yellow Paper uses 2**256 / difficulty to define the ...
hughy's user avatar
  • 21
1 vote
2 answers
290 views

How to access the difficulty of an older block from within a smart contract?

Is it possible to access properties of an older block from within a smart contract (e.g. difficulty, timestamp etc.)?
Jan Beneš's user avatar
1 vote
0 answers
107 views

High block mining time even with low difficulty

We have a private network running on Hyperledger Besu. We are using ethash, and it had a fixed difficulty of 3625. That was producing blocks fairly quickly, averaging about 8-10 seconds, with some as ...
pdmoerman's user avatar
  • 131
3 votes
1 answer
210 views

The connection among Terminal Total Difficulty (TTD), Difficulty, and Total Difficulty

What is the connection between Terminal Total Difficulty (TTD), Difficulty, and Total Difficulty? Why can Total Difficulty increase if Difficulty decreases? I know that: difficulty: QUANTITY - ...
Milk Trudge's user avatar
0 votes
1 answer
145 views

Calculate block/share difficulty

Introduction I am trying to obtain the share difficulty sent from my mining rig to the pool; I have captured the following stratum data: Work from pool sent to miner: {"id":0,"jsonrpc&...
Feche1320's user avatar
7 votes
4 answers
7k 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 ...
Ivan Aracki's user avatar
0 votes
1 answer
145 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 ...
Viraj's user avatar
  • 23
0 votes
0 answers
252 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 ...
Poseidon's user avatar
1 vote
0 answers
141 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 ...
pwagner's user avatar
  • 945
2 votes
0 answers
182 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 "...
Valerii's user avatar
  • 21
0 votes
2 answers
677 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, ...
Shane's user avatar
  • 131
0 votes
1 answer
85 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 ...
Ondrej Tokar's user avatar
2 votes
0 answers
12 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 ...
Boyang's user avatar
  • 121
3 votes
1 answer
642 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 ...
NinjaMAN's user avatar
  • 419
1 vote
0 answers
409 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 ...
Hatifix90's user avatar
0 votes
1 answer
506 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)) ...
Axium7's user avatar
  • 139
1 vote
1 answer
115 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)...
Venson De Laquira's user avatar
3 votes
0 answers
46 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 ...
ulu's user avatar
  • 730
2 votes
1 answer
116 views

What is the Muir Glacier hardfork?

What is the Muir Glacier hardfork on the Ethereum mainnet?
Shane Fontaine's user avatar
0 votes
0 answers
302 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 ...
gorpen's user avatar
  • 75
0 votes
0 answers
38 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 ...
Shulai's user avatar
  • 51
1 vote
0 answers
52 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 ...
Shulai's user avatar
  • 51
1 vote
1 answer
104 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, ...
Tyler Bath's user avatar
1 vote
1 answer
74 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? ...
Francesco's user avatar
0 votes
1 answer
32 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. ...
CryptoPuff's user avatar
0 votes
1 answer
2k 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....
SimonSchuler's user avatar
2 votes
2 answers
268 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 ...
Paul Razvan Berg's user avatar
0 votes
3 answers
193 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. ...
Prashant Prabhakar Singh's user avatar
0 votes
1 answer
271 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 ...
abed's user avatar
  • 664
1 vote
1 answer
57 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 ...
Dobby007's user avatar
  • 113
1 vote
0 answers
809 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 ...
Korjavin Ivan's user avatar
1 vote
0 answers
272 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 ...
Korjavin Ivan's user avatar
0 votes
1 answer
284 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 ...
Shourie Ganguly's user avatar
1 vote
1 answer
380 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 ...
stone.212's user avatar
  • 2,004
0 votes
1 answer
897 views

Share difficulty and hashrate

Can anybody explain relations or formulas between share difficulty, target and hashrate? Thank you.
Andrei Kandratovich's user avatar
1 vote
1 answer
575 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 (...
slebi's 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 ...
schmu56's 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 ...
Christian Seberino's user avatar
1 vote
1 answer
749 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 ...
cogitoergosum's user avatar
2 votes
0 answers
454 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 ...
ethereum_alex's user avatar
0 votes
1 answer
449 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 ...
Moein's user avatar
  • 149
2 votes
1 answer
917 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. ...
tomo's 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 ...
Nathan Gisvold's user avatar
3 votes
1 answer
222 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 ...
user127379's user avatar
3 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 ...
Bastien's user avatar
  • 376
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 ...
stone.212's user avatar
  • 2,004
29 votes
3 answers
5k 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 ...
Jeff Coleman's user avatar
  • 22.2k
1 vote
1 answer
444 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
Zeni Wong's 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 ?
Himanshu sharma's user avatar