diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-11-14 19:03:29 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-11-15 00:00:14 +0800 |
commit | 4a439c2359991bdc49463ae66da11da895cc6eb7 (patch) | |
tree | bb5ef79628597c67af9f13c2aa7ddcf59452d482 /params | |
parent | 4c16c82500645de83907743555e7256af86a9423 (diff) | |
download | dexon-4a439c2359991bdc49463ae66da11da895cc6eb7.tar.gz dexon-4a439c2359991bdc49463ae66da11da895cc6eb7.tar.zst dexon-4a439c2359991bdc49463ae66da11da895cc6eb7.zip |
mobile: port wrappers to EIP155 and EIP158 fork
Diffstat (limited to 'params')
-rw-r--r-- | params/config.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/params/config.go b/params/config.go index d63236ef8..d27973a32 100644 --- a/params/config.go +++ b/params/config.go @@ -22,6 +22,28 @@ import ( "github.com/ethereum/go-ethereum/common" ) +// MainnetChainConfig is the chain parameters to run a node on the main network. +var MainnetChainConfig = &ChainConfig{ + HomesteadBlock: MainNetHomesteadBlock, + DAOForkBlock: MainNetDAOForkBlock, + DAOForkSupport: true, + EIP150Block: MainNetHomesteadGasRepriceBlock, + EIP150Hash: MainNetHomesteadGasRepriceHash, + EIP155Block: MainNetSpuriousDragon, + EIP158Block: MainNetSpuriousDragon, +} + +// TestnetChainConfig is the chain parameters to run a node on the test network. +var TestnetChainConfig = &ChainConfig{ + HomesteadBlock: TestNetHomesteadBlock, + DAOForkBlock: TestNetDAOForkBlock, + DAOForkSupport: false, + EIP150Block: TestNetHomesteadGasRepriceBlock, + EIP150Hash: TestNetHomesteadGasRepriceHash, + EIP155Block: TestNetSpuriousDragon, + EIP158Block: TestNetSpuriousDragon, +} + // ChainConfig is the core config which determines the blockchain settings. // // ChainConfig is stored in the database on a per block basis. This means |