This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
tendermint
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
221
Wiki
Activity
Browse Source
daemon: refactor out of cmd into own package
pull/32/head
Ethan Buchman
10 years ago
committed by
Jae Kwon
parent
7aa1d67c97
commit
983b7f48e8
3 changed files
with
11 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
cmd/main.go
+2
-2
daemon/daemon.go
+7
-0
daemon/log.go
+ 2
- 1
cmd/main.go
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
:
]
)
d
aemon
(
)
daemon
.
D
aemon
(
)
case
"gen_account"
:
gen_account
(
)
case
"gen_validator"
:
cmd/daemon.go → daemon/daemon.go
View File
+ 7
- 0
daemon/log.go
View File
@ -0,0 +1,7 @@
package
daemon
import
(
"github.com/tendermint/tendermint/logger"
)
var
log
=
logger
.
New
(
"module"
,
"daemon"
)
Write
Preview
Loading…
Cancel
Save