add SpuriousGasCosts table into forkToSchedule

This commit is contained in:
andri lim 2019-04-17 09:46:33 +07:00
parent 81953d8108
commit 23d084da68
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9

View File

@ -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