diff options
author | Maran <maran.hidskes@gmail.com> | 2014-03-24 17:26:19 +0800 |
---|---|---|
committer | Maran <maran.hidskes@gmail.com> | 2014-03-24 17:26:19 +0800 |
commit | 6724d27c0c897f116cac3163230f043e80304f91 (patch) | |
tree | 4e3f9c0225881c2b6a12deb5f223ee9b139d517d /ethereal/config.go | |
parent | 3002570085c6823da4b8e12015eafa4bd87177fb (diff) | |
parent | 642630db15a793cf0a0f7fbd827daee364df5423 (diff) | |
download | dexon-6724d27c0c897f116cac3163230f043e80304f91.tar.gz dexon-6724d27c0c897f116cac3163230f043e80304f91.tar.zst dexon-6724d27c0c897f116cac3163230f043e80304f91.zip |
Merge master into miner branch
Diffstat (limited to 'ethereal/config.go')
-rw-r--r-- | ethereal/config.go | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/ethereal/config.go b/ethereal/config.go new file mode 100644 index 000000000..a534bb182 --- /dev/null +++ b/ethereal/config.go @@ -0,0 +1,34 @@ +package main + +import ( + "flag" +) + +var StartConsole bool +var StartMining bool +var UseUPnP bool +var OutboundPort string +var ShowGenesis bool +var AddPeer string +var MaxPeer int +var GenAddr bool +var UseSeed bool +var ImportKey string +var ExportKey bool +var DataDir string + +func Init() { + flag.BoolVar(&StartConsole, "c", false, "debug and testing console") + flag.BoolVar(&StartMining, "m", false, "start dagger mining") + flag.BoolVar(&ShowGenesis, "g", false, "prints genesis header and exits") + flag.BoolVar(&UseUPnP, "upnp", false, "enable UPnP support") + flag.BoolVar(&UseSeed, "seed", true, "seed peers") + flag.BoolVar(&GenAddr, "genaddr", false, "create a new priv/pub key") + flag.BoolVar(&ExportKey, "export", false, "export private key") + flag.StringVar(&OutboundPort, "p", "30303", "listening port") + flag.StringVar(&DataDir, "dir", ".ethereal", "ethereum data directory") + flag.StringVar(&ImportKey, "import", "", "imports the given private key (hex)") + flag.IntVar(&MaxPeer, "x", 5, "maximum desired peers") + + flag.Parse() +} |