Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raft: pass gas floor and gas ceil to calcGasLimit when minting block #680

Merged
merged 13 commits into from
May 31, 2019

Conversation

amalrajmani
Copy link
Contributor

raft: pass gas floor and gas ceil to calcGasLimit when minting block
currently raft is using parent gas limit for both floor and ceil and this change is a fix for it

@jpmsam jpmsam mentioned this pull request May 15, 2019
fixanoid
fixanoid previously approved these changes May 16, 2019
raft/backend.go Outdated Show resolved Hide resolved
@jpmsam jpmsam merged commit 1c07c0c into master May 31, 2019
@amalrajmani amalrajmani deleted the fix/raft-calcgaslimit branch July 22, 2019 08:06
@robinbryce
Copy link

On 2.2.4 We originaly set a very high transaction gasLimit - for our scenario we don't care about per tx gasLimit and we don't care about the block level gasLimit. After running for a while, the limit produced by CalcGasLimit was less than our 'fixed' per transaction gasLimit. With the result that all transactions were then rejected by the preCheck with 'exceeds block gas limit" error. Its time consuming to track this down if not aware of the mechanics of this dyamic block gasLimit. We now ensure that 'floor' is very high and transaction gasLimit is < 'floor'. We don't care about the ceiling but considered setting genesis.gasLimit < floor, and floor to be some modestly high value, so we would later have the option of lowering the value for --miner.gastarget and re-enabling the dynamic block gas limit. What does the dynamic limit produced by CalcGasLimit actually give us for a private network ? Is there a reason not to have a fixed limit ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants