Skip to content

Commit

Permalink
Set the CalcGasLimit to return the Min gas limit temporarily for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
gameofpointers committed Jun 18, 2024
1 parent 6f49b83 commit 0651969
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/block_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ func (v *BlockValidator) ValidateState(block *types.WorkObject, statedb *state.S
// to keep the baseline gas close to the provided target, and increase it towards
// the target if the baseline gas is lower.
func CalcGasLimit(parent *types.WorkObject, gasCeil uint64) uint64 {
return params.MinGasLimit
// No Gas for TimeToStartTx days worth of zone blocks, this gives enough time to
// onboard new miners into the slice
if parent.NumberU64(common.ZONE_CTX) < params.TimeToStartTx {
Expand Down

0 comments on commit 0651969

Please sign in to comment.