Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [difficulty]

The tag has no usage guidance.

0
votes
1answer
44 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....
1
vote
1answer
46 views

Why has 2048 been chosen as a 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
1answer
25 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
0answers
38 views

Constant difficulty is private network (Upper cap on difficulty)

As the title goes. how we can fix difficulty of private ethereum network? I have gone through all the following links, some answers are outdated and some don't work. is-it-possible-to-change-the-...
0
votes
0answers
34 views

how to stop increase difficulty in private ethereum network [duplicate]

According to this discussion: How do I decrease the difficulty on a private testnet? I did the same changes on geth and built geth. The problem is when I modify geth and create my private network, ...
0
votes
1answer
74 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
33 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
212 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
94 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
135 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
207 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
356 views

Share difficulty and hashrate

Can anybody explain relations or formulas between share difficulty, target and hashrate? Thank you.
1
vote
1answer
248 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
551 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
0answers
128 views

Is it possible to share a solution of higher difficulty than the network without finding a new block? (Pool)

Example: You are pool mining a coin with a network difficulty of 21,000. You leave your setup for several hours. Upon returning you notice your "Best Share" was one with a difficulty of 70,000. ...
0
votes
1answer
668 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
409 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 ...
0
votes
0answers
48 views

Difficulty measures in Casper

How will difficulty be measured and manifested in Casper proof-of-stake? Will it be possible to mark blocks as fraudulent outside of the context of the blockchain (e.g. in another blockchain). For ...
2
votes
0answers
217 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
288 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 ...
0
votes
0answers
45 views

How to achieve 10 minute average block time on a private blockchain? [duplicate]

I have built a private Ethereum network with 5 miners. I'm wondering what I should do to achieve 10 minute average block time on a private blockchain. BTW, it is described here: https://www.reddit....
2
votes
1answer
873 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
186 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
1k 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 ...
20
votes
1answer
2k 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
378 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
320 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
682 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
576 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
569 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
444 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
115 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
136 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.
15
votes
3answers
5k 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
718 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(...
6
votes
2answers
3k 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
147 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
1answer
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
507 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 ...
21
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 ...
26
votes
4answers
8k 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
772 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
139 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.
18
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 ...
16
votes
3answers
17k 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 ...
8
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 ...