diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-07-08 23:48:17 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-07-15 21:52:55 +0800 |
commit | a87089fd2dc08a69a4a4f1ef93db9a2871d819a3 (patch) | |
tree | b1634faefc24ee8b80b9ad9c06ac8df7f409558b /core/config.go | |
parent | 1e24c2e4f428c85c2f83272af2696469cb8f5bed (diff) | |
download | go-tangerine-a87089fd2dc08a69a4a4f1ef93db9a2871d819a3.tar go-tangerine-a87089fd2dc08a69a4a4f1ef93db9a2871d819a3.tar.gz go-tangerine-a87089fd2dc08a69a4a4f1ef93db9a2871d819a3.tar.bz2 go-tangerine-a87089fd2dc08a69a4a4f1ef93db9a2871d819a3.tar.lz go-tangerine-a87089fd2dc08a69a4a4f1ef93db9a2871d819a3.tar.xz go-tangerine-a87089fd2dc08a69a4a4f1ef93db9a2871d819a3.tar.zst go-tangerine-a87089fd2dc08a69a4a4f1ef93db9a2871d819a3.zip |
cmd, core, miner: add extradata validation to consensus rules
Diffstat (limited to 'core/config.go')
-rw-r--r-- | core/config.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/config.go b/core/config.go index d04b00e9c..c0d065a57 100644 --- a/core/config.go +++ b/core/config.go @@ -31,8 +31,9 @@ var ChainConfigNotFoundErr = errors.New("ChainConfig not found") // general conf // that any network, identified by its genesis block, can have its own // set of configuration options. type ChainConfig struct { - HomesteadBlock *big.Int `json:"homesteadBlock"` // homestead switch block (0 = already homestead) - DAOForkBlock *big.Int `json:"daoForkBlock"` // TheDAO hard-fork block (nil = no fork) + HomesteadBlock *big.Int `json:"homesteadBlock"` // Homestead switch block (nil = no fork, 0 = already homestead) + DAOForkBlock *big.Int `json:"daoForkBlock"` // TheDAO hard-fork switch block (nil = no fork) + DAOForkSupport bool `json:"daoForkSupport"` // Whether the nodes supports or opposes the DAO hard-fork VmConfig vm.Config `json:"-"` } |