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
refactor dummy; flush tmsp reqs
pull/1780/head
Ethan Buchman
9 years ago
parent
e40c4834a8
commit
2de72d26cf
4 changed files
with
31 additions
and
20 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+22
-0
cmd/dummy/main.go
+7
-0
cmd/tmsp/cli.go
+1
-19
example/dummy.go
+1
-1
example/dummy_test.go
+ 22
- 0
cmd/dummy/main.go
View File
@ -0,0 +1,22 @@
package
main
import
(
.
"github.com/tendermint/go-common"
"github.com/tendermint/tmsp/example"
"github.com/tendermint/tmsp/server"
)
func
main
(
)
{
// Start the listener
_
,
err
:=
server
.
StartListener
(
"tcp://127.0.0.1:8080"
,
example
.
NewDummyApplication
(
)
)
if
err
!=
nil
{
Exit
(
err
.
Error
(
)
)
}
// Wait forever
TrapSignal
(
func
(
)
{
// Cleanup
}
)
}
cmd/cli.go → cmd/tmsp/cli.go
View File
example/main.go → example/dummy.go
View File
example/main_test.go → example/dummy_test.go
View File
Write
Preview
Loading…
Cancel
Save