* Switch ports 4665x to be 2655x This is done so the default ports aren't in the linux kernel's default ephemeral port range. * Missed one doc file, change dep so gaiad works * Update changelog, fix Gopkg.lock
25 lines
461 B
Go
25 lines
461 B
Go
package baseapp
|
|
|
|
import (
|
|
"github.com/tendermint/abci/server"
|
|
abci "github.com/tendermint/abci/types"
|
|
cmn "github.com/tendermint/tmlibs/common"
|
|
)
|
|
|
|
// RunForever - BasecoinApp execution and cleanup
|
|
func RunForever(app abci.Application) {
|
|
|
|
// Start the ABCI server
|
|
srv, err := server.NewServer("0.0.0.0:26658", "socket", app)
|
|
if err != nil {
|
|
cmn.Exit(err.Error())
|
|
}
|
|
srv.Start()
|
|
|
|
// Wait forever
|
|
cmn.TrapSignal(func() {
|
|
// Cleanup
|
|
srv.Stop()
|
|
})
|
|
}
|