Questions tagged [difficulty]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 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
25 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
44 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
28 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
13 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
229 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
1answer
89 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
2answers
63 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
108 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
35 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
320 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
157 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
216 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
281 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
435 views

Share difficulty and hashrate

Can anybody explain relations or formulas between share difficulty, target and hashrate? Thank you.
1
vote
1answer
375 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
654 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
1k 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
517 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
274 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
348 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
894 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
1k 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
194 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 ...
23
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
404 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
366 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
1k 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
688 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
623 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
608 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
491 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
131 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
142 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.
16
votes
3answers
6k 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
843 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
161 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?
13
votes
2answers
6k 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
583 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 ...
23
votes
2answers
16k 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 ...
28
votes
4answers
10k 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 ...
5
votes
1answer
864 views

Ethereum Difficulty History? Percentages not a chart

Is there any website that shows the Ethereum difficulty with percentage increase instead of just a chart ? I'm looking for something similar to https://bitcoinwisdom.com/bitcoin/difficulty : in the ...
2
votes
1answer
156 views

How is difficulty used by mining clients?

I understand how it's calculated and what its intent is. I'm unsure of how the value is being used in practice.
20
votes
2answers
3k views

Why are there no leading zeroes in ethereum block hash?

The block hash has to be below certain difficulty, right? In bitcoin this means, that there are many leading zeroes in hash value, eg. for bitcoin block #402329 hash is ...
20
votes
3answers
18k 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 ...
10
votes
2answers
2k 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 ...