diff options
author | obscuren <geffobscura@gmail.com> | 2014-01-09 18:57:35 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-01-09 18:57:35 +0800 |
commit | d2b3071b4d820b9530b3de891078970ea036767c (patch) | |
tree | 31067ae6de066106fd54c8367301e1ae1ff1985b /ethereum.go | |
parent | 92b6667bd1cf7aad4a00331d761d8a92b03a7cae (diff) | |
download | dexon-d2b3071b4d820b9530b3de891078970ea036767c.tar dexon-d2b3071b4d820b9530b3de891078970ea036767c.tar.gz dexon-d2b3071b4d820b9530b3de891078970ea036767c.tar.bz2 dexon-d2b3071b4d820b9530b3de891078970ea036767c.tar.lz dexon-d2b3071b4d820b9530b3de891078970ea036767c.tar.xz dexon-d2b3071b4d820b9530b3de891078970ea036767c.tar.zst dexon-d2b3071b4d820b9530b3de891078970ea036767c.zip |
db console is now a general console.
Diffstat (limited to 'ethereum.go')
-rw-r--r-- | ethereum.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ethereum.go b/ethereum.go index b10415fd1..b31ff751d 100644 --- a/ethereum.go +++ b/ethereum.go @@ -6,6 +6,7 @@ import ( "os/signal" "flag" "runtime" + _"math/big" ) const Debug = true @@ -13,7 +14,7 @@ const Debug = true var StartDBQueryInterface bool var StartMining bool func Init() { - flag.BoolVar(&StartDBQueryInterface, "db", false, "start db query interface") + flag.BoolVar(&StartDBQueryInterface, "c", false, "console interface") flag.BoolVar(&StartMining, "mine", false, "start dagger mining") flag.Parse() @@ -46,9 +47,7 @@ func main() { dbInterface.Start() } else if StartMining { dagger := &Dagger{} - seed := dagger.Search(BigPow(2, 36)) - - fmt.Println("dagger res = ", seed) + dagger.Search(BigPow(2, 36)) } else { fmt.Println("[DBUG]: Starting Ethereum") server, err := NewServer() |