diff options
author | obscuren <geffobscura@gmail.com> | 2014-01-09 23:19:16 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-01-09 23:19:16 +0800 |
commit | d895f83136eccc7e440792fdb45fd4d40876d82e (patch) | |
tree | ac774926bdb194a3571e83ef99b9eaae0f655cd9 /ethereum.go | |
parent | d2b3071b4d820b9530b3de891078970ea036767c (diff) | |
download | go-tangerine-d895f83136eccc7e440792fdb45fd4d40876d82e.tar go-tangerine-d895f83136eccc7e440792fdb45fd4d40876d82e.tar.gz go-tangerine-d895f83136eccc7e440792fdb45fd4d40876d82e.tar.bz2 go-tangerine-d895f83136eccc7e440792fdb45fd4d40876d82e.tar.lz go-tangerine-d895f83136eccc7e440792fdb45fd4d40876d82e.tar.xz go-tangerine-d895f83136eccc7e440792fdb45fd4d40876d82e.tar.zst go-tangerine-d895f83136eccc7e440792fdb45fd4d40876d82e.zip |
Dagger improvements
Diffstat (limited to 'ethereum.go')
-rw-r--r-- | ethereum.go | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/ethereum.go b/ethereum.go index b31ff751d..e3e5005eb 100644 --- a/ethereum.go +++ b/ethereum.go @@ -11,10 +11,10 @@ import ( const Debug = true -var StartDBQueryInterface bool +var StartConsole bool var StartMining bool func Init() { - flag.BoolVar(&StartDBQueryInterface, "c", false, "console interface") + flag.BoolVar(&StartConsole, "c", false, "debug and testing console") flag.BoolVar(&StartMining, "mine", false, "start dagger mining") flag.Parse() @@ -42,12 +42,13 @@ func main() { Init() - if StartDBQueryInterface { - dbInterface := NewDBInterface() - dbInterface.Start() + if StartConsole { + console := NewConsole() + console.Start() } else if StartMining { dagger := &Dagger{} - dagger.Search(BigPow(2, 36)) + res := dagger.Search(BigPow(2, 36)) + fmt.Println("nonce =", res) } else { fmt.Println("[DBUG]: Starting Ethereum") server, err := NewServer() |