mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
params: handle base fee denom for non bor consensus chains
This commit is contained in:
parent
b7ec380c30
commit
8bef85d059
1 changed files with 4 additions and 0 deletions
|
|
@ -229,6 +229,10 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
func BaseFeeChangeDenominator(borConfig *BorConfig, number *big.Int) uint64 {
|
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) {
|
if borConfig.IsDelhi(number) {
|
||||||
return BaseFeeChangeDenominatorPostDelhi
|
return BaseFeeChangeDenominatorPostDelhi
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue