Skip to content

Commit

Permalink
Eip-1559 transactions support and updated gas limit (divisor and 80% … (
Browse files Browse the repository at this point in the history
dominant-strategies#177)

* Eip-1559 transactions support and updated gas limit (divisor and 80% limit)

* Eip-1559 transactions support and updated gas limit (divisor and 80% limit)
  • Loading branch information
shreekarashastry authored Feb 18, 2022
1 parent ac15d46 commit 050dfcf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/block_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func CalcGasLimit(parentGasLimit, gasUsed uint64, uncleCount int) uint64 {
limit := parentGasLimit
aboveRate := uncleCount > params.TargetUncles[types.QuaiNetworkContext]
// If we're receiving full blocks, we try to increase the block size
if percent > uint64(950) {
if percent > uint64(800) {
limit = parentGasLimit + delta
if aboveRate {
limit = limit - delta
Expand Down
4 changes: 2 additions & 2 deletions params/protocol_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ package params
import "math/big"

const (
GasLimitBoundDivisor uint64 = 1024 // The bound divisor of the gas limit, used in update calculations.
GasLimitBoundDivisor uint64 = 512 // The bound divisor of the gas limit, used in update calculations.
MinGasLimit uint64 = 5000 // Minimum the gas limit may ever be.
EmptyGasLimit uint64 = 100000 // Gas limit at empty blocks
EmptyGasLimit uint64 = 200000 // Gas limit at empty blocks
GenesisGasLimit uint64 = 4712388 // Gas limit of the Genesis block.

MaximumExtraDataSize uint64 = 32 // Maximum size extra data may be after Genesis.
Expand Down

0 comments on commit 050dfcf

Please sign in to comment.