mobile: port wrappers to EIP155 and EIP158 fork

This commit is contained in:
Péter Szilágyi
2016-11-14 13:03:29 +02:00
parent 4c16c82500
commit 4a439c2359
6 changed files with 58 additions and 48 deletions

View File

@ -17,10 +17,8 @@
package utils
import (
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/p2p/discover"
"github.com/ethereum/go-ethereum/p2p/discv5"
"github.com/ethereum/go-ethereum/params"
)
// MainnetBootnodes are the enode URLs of the P2P bootstrap nodes running on
@ -52,21 +50,3 @@ var DiscoveryV5Bootnodes = []*discv5.Node{
discv5.MustParseNode("enode://1c7a64d76c0334b0418c004af2f67c50e36a3be60b5e4790bdac0439d21603469a85fad36f2473c9a80eb043ae60936df905fa28f1ff614c3e5dc34f15dcd2dc@40.118.3.223:30308"),
discv5.MustParseNode("enode://85c85d7143ae8bb96924f2b54f1b3e70d8c4d367af305325d30a61385a432f247d2c75c45c6b4a60335060d072d7f5b35dd1d4c45f76941f62a4f83b6e75daaf@40.118.3.223:30309"),
}
// MainnetChainConfig is the chain parameters to run a node on the main network.
var MainnetChainConfig = &core.ChainConfig{
HomesteadBlock: params.MainNetHomesteadBlock,
DAOForkBlock: params.MainNetDAOForkBlock,
DAOForkSupport: true,
HomesteadGasRepriceBlock: params.MainNetHomesteadGasRepriceBlock,
HomesteadGasRepriceHash: params.MainNetHomesteadGasRepriceHash,
}
// TestnetChainConfig is the chain parameters to run a node on the test network.
var TestnetChainConfig = &core.ChainConfig{
HomesteadBlock: params.TestNetHomesteadBlock,
DAOForkBlock: params.TestNetDAOForkBlock,
DAOForkSupport: false,
HomesteadGasRepriceBlock: params.TestNetHomesteadGasRepriceBlock,
HomesteadGasRepriceHash: params.TestNetHomesteadGasRepriceHash,
}