|
|
@ -62,20 +62,21 @@ func main() { |
|
|
|
utils.InitConfig(VmType, ConfigFile, Datadir, "ETH") |
|
|
|
utils.InitConfig(VmType, ConfigFile, Datadir, "ETH") |
|
|
|
|
|
|
|
|
|
|
|
ethereum, err := eth.New(ð.Config{ |
|
|
|
ethereum, err := eth.New(ð.Config{ |
|
|
|
Name: p2p.MakeName(ClientIdentifier, Version), |
|
|
|
Name: p2p.MakeName(ClientIdentifier, Version), |
|
|
|
KeyStore: KeyStore, |
|
|
|
KeyStore: KeyStore, |
|
|
|
DataDir: Datadir, |
|
|
|
DataDir: Datadir, |
|
|
|
LogFile: LogFile, |
|
|
|
LogFile: LogFile, |
|
|
|
LogLevel: LogLevel, |
|
|
|
LogLevel: LogLevel, |
|
|
|
LogFormat: LogFormat, |
|
|
|
LogFormat: LogFormat, |
|
|
|
MaxPeers: MaxPeer, |
|
|
|
MaxPeers: MaxPeer, |
|
|
|
Port: OutboundPort, |
|
|
|
Port: OutboundPort, |
|
|
|
NAT: NAT, |
|
|
|
NAT: NAT, |
|
|
|
KeyRing: KeyRing, |
|
|
|
KeyRing: KeyRing, |
|
|
|
Shh: true, |
|
|
|
Shh: true, |
|
|
|
Dial: Dial, |
|
|
|
Dial: Dial, |
|
|
|
BootNodes: BootNodes, |
|
|
|
BootNodes: BootNodes, |
|
|
|
NodeKey: NodeKey, |
|
|
|
NodeKey: NodeKey, |
|
|
|
|
|
|
|
MinerThreads: MinerThreads, |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
@ -113,10 +114,6 @@ func main() { |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if StartMining { |
|
|
|
|
|
|
|
utils.StartMining(ethereum) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if len(ImportChain) > 0 { |
|
|
|
if len(ImportChain) > 0 { |
|
|
|
start := time.Now() |
|
|
|
start := time.Now() |
|
|
|
err := utils.ImportChain(ethereum, ImportChain) |
|
|
|
err := utils.ImportChain(ethereum, ImportChain) |
|
|
@ -139,6 +136,10 @@ func main() { |
|
|
|
|
|
|
|
|
|
|
|
fmt.Printf("Welcome to the FRONTIER\n") |
|
|
|
fmt.Printf("Welcome to the FRONTIER\n") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if StartMining { |
|
|
|
|
|
|
|
ethereum.Miner().Start() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if StartJsConsole { |
|
|
|
if StartJsConsole { |
|
|
|
InitJsConsole(ethereum) |
|
|
|
InitJsConsole(ethereum) |
|
|
|
} else if len(InputFile) > 0 { |
|
|
|
} else if len(InputFile) > 0 { |
|
|
|