mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-26 15:22:15 +00:00
23 lines
364 B
Go
23 lines
364 B
Go
|
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.NewCounterApplication())
|
||
|
if err != nil {
|
||
|
Exit(err.Error())
|
||
|
}
|
||
|
|
||
|
// Wait forever
|
||
|
TrapSignal(func() {
|
||
|
// Cleanup
|
||
|
})
|
||
|
|
||
|
}
|