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 | go-tangerine-d2b3071b4d820b9530b3de891078970ea036767c.tar.gz go-tangerine-d2b3071b4d820b9530b3de891078970ea036767c.tar.zst go-tangerine-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() |