1414// You should have received a copy of the GNU Lesser General Public License
1515// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
1616
17- // Contains all the wrappers from the core package.
17+ // Contains all the wrappers from the params package.
1818
1919package geth
2020
@@ -26,11 +26,13 @@ import (
2626// MainnetChainConfig returns the chain configurations for the main Ethereum network.
2727func MainnetChainConfig () * ChainConfig {
2828 return & ChainConfig {
29- HomesteadBlock : params .MainNetHomesteadBlock .Int64 (),
30- DAOForkBlock : params .MainNetDAOForkBlock .Int64 (),
31- DAOForkSupport : true ,
32- HomesteadGasRepriceBlock : params .MainNetHomesteadGasRepriceBlock .Int64 (),
33- HomesteadGasRepriceHash : Hash {params .MainNetHomesteadGasRepriceHash },
29+ HomesteadBlock : params .MainNetHomesteadBlock .Int64 (),
30+ DAOForkBlock : params .MainNetDAOForkBlock .Int64 (),
31+ DAOForkSupport : true ,
32+ EIP150Block : params .MainNetHomesteadGasRepriceBlock .Int64 (),
33+ EIP150Hash : Hash {params .MainNetHomesteadGasRepriceHash },
34+ EIP155Block : params .MainNetSpuriousDragon .Int64 (),
35+ EIP158Block : params .MainNetSpuriousDragon .Int64 (),
3436 }
3537}
3638
@@ -43,11 +45,13 @@ func MainnetGenesis() string {
4345// TestnetChainConfig returns the chain configurations for the Ethereum test network.
4446func TestnetChainConfig () * ChainConfig {
4547 return & ChainConfig {
46- HomesteadBlock : params .TestNetHomesteadBlock .Int64 (),
47- DAOForkBlock : 0 ,
48- DAOForkSupport : false ,
49- HomesteadGasRepriceBlock : params .TestNetHomesteadGasRepriceBlock .Int64 (),
50- HomesteadGasRepriceHash : Hash {params .TestNetHomesteadGasRepriceHash },
48+ HomesteadBlock : params .TestNetHomesteadBlock .Int64 (),
49+ DAOForkBlock : 0 ,
50+ DAOForkSupport : false ,
51+ EIP150Block : params .TestNetHomesteadGasRepriceBlock .Int64 (),
52+ EIP150Hash : Hash {params .TestNetHomesteadGasRepriceHash },
53+ EIP155Block : params .TestNetSpuriousDragon .Int64 (),
54+ EIP158Block : params .TestNetSpuriousDragon .Int64 (),
5155 }
5256}
5357
@@ -58,11 +62,13 @@ func TestnetGenesis() string {
5862
5963// ChainConfig is the core config which determines the blockchain settings.
6064type ChainConfig struct {
61- HomesteadBlock int64 // Homestead switch block
62- DAOForkBlock int64 // TheDAO hard-fork switch block
63- DAOForkSupport bool // Whether the nodes supports or opposes the DAO hard-fork
64- HomesteadGasRepriceBlock int64 // Homestead gas reprice switch block
65- HomesteadGasRepriceHash Hash // Homestead gas reprice switch block hash
65+ HomesteadBlock int64 // Homestead switch block
66+ DAOForkBlock int64 // TheDAO hard-fork switch block
67+ DAOForkSupport bool // Whether the nodes supports or opposes the DAO hard-fork
68+ EIP150Block int64 // Homestead gas reprice switch block
69+ EIP150Hash Hash // Homestead gas reprice switch block hash
70+ EIP155Block int64 // Replay protection switch block
71+ EIP158Block int64 // Empty account pruning switch block
6672}
6773
6874// NewChainConfig creates a new chain configuration that transitions immediately
0 commit comments