Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Configurable gas limit cap. #1405

Merged
merged 4 commits into from
Jun 24, 2016
Merged

Configurable gas limit cap. #1405

merged 4 commits into from
Jun 24, 2016

Conversation

gavofyork
Copy link
Contributor

@gavofyork gavofyork commented Jun 23, 2016

The point of this is to provide an option to the user so they can cap the rise of gas limit. Gas limit strategy is to increase as long as there is significant gas usage in the block. For fork voting, this means a miner taking a large amount of transaction spam could accidentally keep their gas limit substantially above the target floor. This prevents that situation by allowing a cap, beyond which no amount of transaction volume could push the gas limit.

@gavofyork gavofyork added the A0-pleasereview 🤓 Pull request needs code review. label Jun 23, 2016
} else {
max(gas_floor_target, gas_limit - gas_limit / bound_divisor + 1.into() + (header.gas_used * 6.into() / 5.into()) / bound_divisor)
max(gas_ceil_target,
max(gas_floor_target,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

min here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

@arkpar arkpar added A4-gotissues 💥 Pull request is reviewed and has significant issues which must be addressed. and removed A0-pleasereview 🤓 Pull request needs code review. labels Jun 23, 2016
@gavofyork gavofyork added A0-pleasereview 🤓 Pull request needs code review. and removed A4-gotissues 💥 Pull request is reviewed and has significant issues which must be addressed. labels Jun 24, 2016
@arkpar arkpar added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Jun 24, 2016
@arkpar arkpar merged commit 4e0d6f7 into master Jun 24, 2016
@arkpar arkpar deleted the sfedgecase branch October 3, 2016 15:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants