aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-01-09 18:57:35 +0800
committerobscuren <geffobscura@gmail.com>2014-01-09 18:57:35 +0800
commitd2b3071b4d820b9530b3de891078970ea036767c (patch)
tree31067ae6de066106fd54c8367301e1ae1ff1985b /ethereum.go
parent92b6667bd1cf7aad4a00331d761d8a92b03a7cae (diff)
downloadgo-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.go7
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()