core: add host and port in static node file

This commit is contained in:
Edwin 2017-08-11 15:55:19 +08:00
parent e3e086b470
commit b85e6faa19
1 changed files with 4 additions and 1 deletions

View File

@ -38,13 +38,16 @@ const (
defaultLocalDir = "/tmp/gdata"
datadirPrivateKey = "nodekey"
defaultIP = net.IPv4(127, 0, 0, 1)
clientIdentifier = "geth"
staticNodeJson = "static-nodes.json"
genesisJson = "genesis.json"
)
var (
defaultIP = net.IPv4(127, 0, 0, 1)
)
func GenerateClusterKeys(numbers int) []*ecdsa.PrivateKey {
keys := make([]*ecdsa.PrivateKey, numbers)
for i := 0; i < len(keys); i++ {