diff options
author | obscuren <geffobscura@gmail.com> | 2014-07-02 02:09:37 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-07-02 02:09:37 +0800 |
commit | dd869064a678918544678c9cb8413d1e9a94de89 (patch) | |
tree | fc2354d02af43f7298ff280b2b3b39713b67ce23 /ethereum/main.go | |
parent | 7a2a63f32b209f0358fa6be1e76b49319d8f309f (diff) | |
download | go-tangerine-dd869064a678918544678c9cb8413d1e9a94de89.tar go-tangerine-dd869064a678918544678c9cb8413d1e9a94de89.tar.gz go-tangerine-dd869064a678918544678c9cb8413d1e9a94de89.tar.bz2 go-tangerine-dd869064a678918544678c9cb8413d1e9a94de89.tar.lz go-tangerine-dd869064a678918544678c9cb8413d1e9a94de89.tar.xz go-tangerine-dd869064a678918544678c9cb8413d1e9a94de89.tar.zst go-tangerine-dd869064a678918544678c9cb8413d1e9a94de89.zip |
delete?
Diffstat (limited to 'ethereum/main.go')
-rw-r--r-- | ethereum/main.go | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/ethereum/main.go b/ethereum/main.go deleted file mode 100644 index 1531871cb..000000000 --- a/ethereum/main.go +++ /dev/null @@ -1,57 +0,0 @@ -package main - -import ( - "github.com/ethereum/eth-go/ethlog" - "github.com/ethereum/go-ethereum/utils" - "runtime" -) - -var logger = ethlog.NewLogger("CLI") - -func main() { - runtime.GOMAXPROCS(runtime.NumCPU()) - - utils.HandleInterrupt() - - // precedence: code-internal flag default < config file < environment variables < command line - Init() // parsing command line - utils.InitConfig(ConfigFile, Datadir, Identifier, "ETH") - - utils.InitDataDir(Datadir) - - utils.InitLogging(Datadir, LogFile, LogLevel, DebugFile) - - db := utils.NewDatabase() - - keyManager := utils.NewKeyManager(KeyStore, Datadir, db) - - // create, import, export keys - utils.KeyTasks(keyManager, KeyRing, GenAddr, SecretFile, ExportDir, NonInteractive) - - ethereum := utils.NewEthereum(db, keyManager, UseUPnP, OutboundPort, MaxPeer) - - if ShowGenesis { - utils.ShowGenesis(ethereum) - } - - if StartMining { - utils.StartMining(ethereum) - } - - // better reworked as cases - if StartJsConsole { - InitJsConsole(ethereum) - } else if len(InputFile) > 0 { - ExecJsFile(ethereum, InputFile) - } - - if StartRpc { - utils.StartRpc(ethereum, RpcPort) - } - - utils.StartEthereum(ethereum, UseSeed) - - // this blocks the thread - ethereum.WaitForShutdown() - ethlog.Flush() -} |