Questions tagged [difficulty]

The tag has no usage guidance.

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

Block size increased or what happned?

I had an unfinished block since i stopped farming in 2019, and with the current price i thought i will start again, right now i have 2162.472 t credits (not sure if that's 2.1 Ethereum) problem is ...
1
vote
0answers
139 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 ...
0
votes
1answer
141 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)) ...
1
vote
1answer
24 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)...
3
votes
0answers
41 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 ...
2
votes
1answer
78 views

What is the Muir Glacier hardfork?

What is the Muir Glacier hardfork on the Ethereum mainnet?
0
votes
0answers
78 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 ...
0
votes
0answers
27 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 ...
1
vote
0answers
43 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 ...
1
vote
1answer
72 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, ...
1
vote
1answer
52 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? ...
0
votes
1answer
19 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. ...
0
votes
1answer
662 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....
2
votes
2answers
148 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 ...
0
votes
3answers
125 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. ...
0
votes
1answer
163 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 ...
1
vote
1answer
45 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 ...
1
vote
0answers
508 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 ...
1
vote
0answers
189 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 ...
0
votes
1answer
241 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 ...
1
vote
1answer
322 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 ...
0
votes
1answer
671 views

Share difficulty and hashrate

Can anybody explain relations or formulas between share difficulty, target and hashrate? Thank you.
1
vote
1answer
444 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 (...
2
votes
2answers
2k 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 ...
0
votes
1answer
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 ...
1
vote
1answer
604 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 ...
2
votes
0answers
320 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 ...
0
votes
1answer
380 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 ...
2
votes
1answer
904 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. ...
0
votes
1answer
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 ...
3
votes
1answer
212 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 ...
2
votes
1answer
2k 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 ...
1
vote
1answer
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 ...
25
votes
3answers
3k 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 ...
1
vote
1answer
422 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
2
votes
1answer
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 ?
6
votes
1answer
450 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....
8
votes
1answer
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://...
5
votes
1answer
708 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 ...
3
votes
2answers
827 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 ...
4
votes
1answer
638 views

Are there any drawbacks for making difficulty static on a private chain?

I have made difficulty static in my private block chain, so I can have static response time. Are there any drawbacks of doing this?
3
votes
1answer
528 views

How to calculate difficulty of genesis block?

To calculate difficulty of a block we need the parent block timestamp and difficulty? As there doesn't exist a parent block so what values should we take for those?
4
votes
1answer
145 views

Should uncles factor into average network block time and difficulty calculations?

It's unclear to me if uncles should factor into averages like block time and difficulty. The fact that they are associated with a parent block and have a timestamp and difficulty, leads me to believe ...
2
votes
1answer
158 views

Can i use the public chain to bootstrap my own private chain?

I'd like to take the existing public chain and use it to bootstrap a private chain. Change the difficulty and add custom endpoints.
17
votes
3answers
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....
1
vote
1answer
930 views

What happens if the block time changes to 5 seconds?

Related to this and this. The difficulty adjustment algorithm is: block_diff = parent_diff + parent_diff // 2048 * max(1 - (block_timestamp - parent_timestamp) // 10, -99) + int(...
8
votes
2answers
4k views

Difficulty and total difficulty

This is the info of one of the blocks in my private blockchain: { difficulty: 759585, extraData: "0xd783010409844765746887676f312e362e32856c696e7578", gasLimit: 4712388, gasUsed: 0, hash: "...
1
vote
1answer
165 views

Can I control the time for confirmation?

I will use ethereum as private blockchain. Then I'd like to change the confirmation time from 15 seconds to 1 second. Can I change it? Could you tell me if you know that?
15
votes
2answers
7k 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**...
7
votes
1answer
621 views

Calculating difficulty and verifying a hash as a solution

I have a scheme right now where individuals are committing to a contract a solution to a problem similar to Bitcoin's proof-of-work protocol. Here's the basic flow...the contract calculates a seed ...