14
14
// You should have received a copy of the GNU Lesser General Public License
15
15
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
16
16
17
- // Contains all the wrappers from the core package.
17
+ // Contains all the wrappers from the params package.
18
18
19
19
package geth
20
20
@@ -26,11 +26,13 @@ import (
26
26
// MainnetChainConfig returns the chain configurations for the main Ethereum network.
27
27
func MainnetChainConfig () * ChainConfig {
28
28
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 (),
34
36
}
35
37
}
36
38
@@ -43,11 +45,13 @@ func MainnetGenesis() string {
43
45
// TestnetChainConfig returns the chain configurations for the Ethereum test network.
44
46
func TestnetChainConfig () * ChainConfig {
45
47
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 (),
51
55
}
52
56
}
53
57
@@ -58,11 +62,13 @@ func TestnetGenesis() string {
58
62
59
63
// ChainConfig is the core config which determines the blockchain settings.
60
64
type 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
66
72
}
67
73
68
74
// NewChainConfig creates a new chain configuration that transitions immediately
0 commit comments