mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 04:41:22 +00:00
use nil-app for in-proc
This commit is contained in:
@ -25,7 +25,7 @@ import (
|
|||||||
sm "github.com/tendermint/tendermint/state"
|
sm "github.com/tendermint/tendermint/state"
|
||||||
"github.com/tendermint/tendermint/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
"github.com/tendermint/tendermint/version"
|
"github.com/tendermint/tendermint/version"
|
||||||
"github.com/tendermint/tmsp/example/dummy"
|
"github.com/tendermint/tmsp/example/nil"
|
||||||
)
|
)
|
||||||
|
|
||||||
import _ "net/http/pprof"
|
import _ "net/http/pprof"
|
||||||
@ -239,7 +239,7 @@ func makeNodeInfo(sw *p2p.Switch, privKey crypto.PrivKeyEd25519) *p2p.NodeInfo {
|
|||||||
func getProxyApp(addr string, hash []byte) (proxyAppConn proxy.AppConn) {
|
func getProxyApp(addr string, hash []byte) (proxyAppConn proxy.AppConn) {
|
||||||
// use local app (for testing)
|
// use local app (for testing)
|
||||||
if addr == "local" {
|
if addr == "local" {
|
||||||
app := dummy.NewDummyApplication()
|
app := nilapp.NewNilApplication()
|
||||||
mtx := new(sync.Mutex)
|
mtx := new(sync.Mutex)
|
||||||
proxyAppConn = proxy.NewLocalAppConn(mtx, app)
|
proxyAppConn = proxy.NewLocalAppConn(mtx, app)
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user