×
all 13 comments

[–]NewEthereumGuy 11 points12 points  (4 children)

Let's make the dynamic gas limit part of the consensus protocol and fork. We can't afford this uncertainty hanging over us.

[–]Ekkio 6 points7 points  (3 children)

It seems there was a miscommunication with miners about gas limit parameters and how to set it correctly.

The way the story goes:

22 days ago /u/Souptacular recommended settings change to

re-introduce an adaptive gas limit feature that was temporarily disabled by many miners last year in response to denial-of-service attacks in October

geth --targetgaslimit 4712388

10 days ago user /u/MoMoNosquito took initiative and communicated to miners to change their settings according to /u/Souptacular post.

1 day ago F2Pool confirmed that they are using 4712388 magic number

17 hours ago it was observed that network block size aka gas limit is converging to 4712388 gas limit.

2 hours ago /u/Souptacular said that gas parameters are complicated and he is going to create a write-up about it.

Good point. There needs to be better communication. The way that mining is set up is much more complicated than how it is in other cryptocurrency system. I will work to talk to some of the lead devs of geth and Parity to get a more detailed explanation of what the gas limits mean and how to set them. I am putting that on my list of things to do. It will likely be out next week (or late this weekend) because I am pretty booked.

[–]oneaccountpermessage 1 point2 points  (2 children)

  • 1 day ago F2Pool confirmed that they are using 4712388 magic number

By looking at the recent blocks mined by F2pool (2 minutes ago). It is visible that that assertion is clearly not true. F2pool had 3 blocks in a row, and voted down the blocklimit in each one, all the way down to 4707889.

0x829BD824B016326A401d083B33D092293333A830 = F2pool new addess

If gas limit=4709983 they vote to lower the gas limit.

If gas limit=4707889 they vote to raise the gas limit.

So they are targeting in between those two numbers (4707889-4709983)

[–]Ekkio 0 points1 point  (1 child)

Found two blocks of theirs 3918894 and 3918895. Where they decreased gas limit from 4,687,682 to 4,683,416 . Those two blocks had no transactions in them so probably it was decreased according to this:

strategy: gasLimit of block-to-mine is set based on parent's gasUsed value. if parentGasUsed > parentGasLimit * (2/3) then we increase it, otherwise lower it (or leave it unchanged if it's right at that usage) the amount increased/decreased depends on how far away from parentGasLimit * (2/3) parentGasUsed is.

From github block_validator.go#L122

Voting to increase gas limit when it was 4707889 was probably due to the same reason, previous block was 2/3 full.

But that means they are indeed not using --targetgaslimit 4712388 , but something lower because otherwise they shouldn't have decreased it.

however, if we're now below the target (TargetGasLimit) we increase the limit as much as we can (parentGasLimit / 1024 -1)

From github block_validator.go#L133

[–]Ekkio 0 points1 point  (0 children)

Also, if above is correct then even if every miner uses --targetgaslimit 4712388 it won't make a noticeable difference, network still won't be able to handle ICO traffic spikes.

[–][deleted]  (2 children)

[deleted]

    [–]emansipater 2 points3 points  (1 child)

    As per Braess's paradox, people are often quite happy to locally optimise themselves into a globally suboptimal result.

    [–]WikiTextBot 4 points5 points  (0 children)

    Braess's paradox

    Braess's paradox (often cited as Braess' paradox) is a proposed explanation for a seeming improvement to a road network being able to impede traffic through it. It was discovered in 1968 by mathematician Dietrich Braess, who noticed that adding a road to a congested road traffic network could increase overall journey time, and it has been used to explain instances of improved traffic flow when existing major roads are closed.

    The paradox may have analogues in electrical power grids and biological systems. It has been suggested that in theory, the improvement of a malfunctioning network could be accomplished by removing certain parts of it.


    [ PM | Exclude me | Exclude from subreddit | FAQ / Information | Source ] Downvote to remove | v0.22