diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-09-18 21:24:35 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-09-18 21:29:51 +0800 |
commit | 5d921fa3a0cea9d87e7fd391c0ddd3115d00d0c4 (patch) | |
tree | a2898e4b4d3f8b17d32f86c6964f60f177fa7c5b /params/config.go | |
parent | caa2c23a38141911a570ba098a940b4fdbf0aa88 (diff) | |
download | go-tangerine-5d921fa3a0cea9d87e7fd391c0ddd3115d00d0c4.tar go-tangerine-5d921fa3a0cea9d87e7fd391c0ddd3115d00d0c4.tar.gz go-tangerine-5d921fa3a0cea9d87e7fd391c0ddd3115d00d0c4.tar.bz2 go-tangerine-5d921fa3a0cea9d87e7fd391c0ddd3115d00d0c4.tar.lz go-tangerine-5d921fa3a0cea9d87e7fd391c0ddd3115d00d0c4.tar.xz go-tangerine-5d921fa3a0cea9d87e7fd391c0ddd3115d00d0c4.tar.zst go-tangerine-5d921fa3a0cea9d87e7fd391c0ddd3115d00d0c4.zip |
core, params: polish net gas metering PR a bit
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 629720550..1c3e25eb7 100644 --- a/params/config.go +++ b/params/config.go @@ -335,7 +335,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. @@ -344,5 +344,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), + } } |