daemon: refactor out of cmd into own package

This commit is contained in:
Ethan Buchman
2015-03-16 22:30:51 -07:00
committed by Jae Kwon
parent 7aa1d67c97
commit 983b7f48e8
3 changed files with 11 additions and 3 deletions

View File

@ -5,6 +5,7 @@ import (
"os"
"github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/daemon"
)
func main() {
@ -26,7 +27,7 @@ Commands:
switch args[0] {
case "daemon":
config.ParseFlags(args[1:])
daemon()
daemon.Daemon()
case "gen_account":
gen_account()
case "gen_validator":