params: handle base fee denom for non bor consensus chains

This commit is contained in:
Manav Darji 2025-03-26 23:40:40 +05:30
parent b7ec380c30
commit 8bef85d059
No known key found for this signature in database
GPG key ID: A426F0124435F36E

View file

@ -229,6 +229,10 @@ var (
)
func BaseFeeChangeDenominator(borConfig *BorConfig, number *big.Int) uint64 {
// Handle cases where bor consensus isn't available to avoid panic
if borConfig == nil {
return DefaultBaseFeeChangeDenominator
}
if borConfig.IsDelhi(number) {
return BaseFeeChangeDenominatorPostDelhi
} else {