mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-13 13:55:45 +00:00
add SpuriousGasCosts table into forkToSchedule
This commit is contained in:
parent
81953d8108
commit
23d084da68
@ -612,14 +612,17 @@ const
|
||||
gasCosts(FkFrontier, base, BaseGasCosts)
|
||||
gasCosts(FkHomestead, homestead, HomesteadGasCosts)
|
||||
gasCosts(FkTangerine, tangerine, TangerineGasCosts)
|
||||
gasCosts(FkSpurious, spurious, SpuriousGasCosts)
|
||||
|
||||
proc forkToSchedule*(fork: Fork): GasCosts =
|
||||
if fork < FkHomestead:
|
||||
BaseGasCosts
|
||||
elif fork < FkTangerine:
|
||||
HomesteadGasCosts
|
||||
else:
|
||||
elif fork < FkSpurious:
|
||||
TangerineGasCosts
|
||||
else:
|
||||
SpuriousGasCosts
|
||||
|
||||
const
|
||||
## Precompile costs
|
||||
|
Loading…
x
Reference in New Issue
Block a user