diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-09-21 19:16:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-21 19:16:18 +0800 |
commit | ee92bc537f159c2202058a33e015684cc2bca04c (patch) | |
tree | 8f89d2e71d98f26024069be193023ef5da2a0d3f /params/config.go | |
parent | 81080bf8cb7f60f59a68cf48998a29a1a2e10cb9 (diff) | |
parent | 360a72d54e9ea6fbf8ddb4872cc514d241ea2042 (diff) | |
download | dexon-ee92bc537f159c2202058a33e015684cc2bca04c.tar.gz dexon-ee92bc537f159c2202058a33e015684cc2bca04c.tar.zst dexon-ee92bc537f159c2202058a33e015684cc2bca04c.zip |
Merge pull request #17383 from holiman/eip1283
Eip1283
Diffstat (limited to 'params/config.go')
-rw-r--r-- | params/config.go | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/params/config.go b/params/config.go index b0f6b7df1..a9e631cde 100644 --- a/params/config.go +++ b/params/config.go @@ -383,7 +383,7 @@ func (err *ConfigCompatError) Error() string { type Rules struct { ChainID *big.Int IsHomestead, IsEIP150, IsEIP155, IsEIP158 bool - IsByzantium bool + IsByzantium, IsConstantinople bool } // Rules ensures c's ChainID is not nil. @@ -392,5 +392,13 @@ func (c *ChainConfig) Rules(num *big.Int) Rules { if chainID == nil { chainID = new(big.Int) } - return Rules{ChainID: new(big.Int).Set(chainID), IsHomestead: c.IsHomestead(num), IsEIP150: c.IsEIP150(num), IsEIP155: c.IsEIP155(num), IsEIP158: c.IsEIP158(num), IsByzantium: c.IsByzantium(num)} + return Rules{ + ChainID: new(big.Int).Set(chainID), + IsHomestead: c.IsHomestead(num), + IsEIP150: c.IsEIP150(num), + IsEIP155: c.IsEIP155(num), + IsEIP158: c.IsEIP158(num), + IsByzantium: c.IsByzantium(num), + IsConstantinople: c.IsConstantinople(num), + } } |