diff --git a/node/node.go b/node/node.go index 79e4b9c39..c85cb8850 100644 --- a/node/node.go +++ b/node/node.go @@ -250,6 +250,7 @@ func getProxyApp(addr string, hash []byte) (proxyAppConn proxy.AppConn) { mtx := new(sync.Mutex) proxyAppConn = proxy.NewLocalAppConn(mtx, app) default: + // Run forever in a loop remoteApp, err := proxy.NewRemoteAppConn(addr) if err != nil { Exit(Fmt("Failed to connect to proxy for mempool: %v", err)) @@ -263,7 +264,7 @@ func getProxyApp(addr string, hash []byte) (proxyAppConn proxy.AppConn) { PanicCrisis(Fmt("Error in getting proxyAppConn hash: %v", res)) } if !bytes.Equal(hash, res.Data) { - PanicCrisis(Fmt("ProxyApp hash does not match. Expected %X, got %X", hash, res.Data)) + log.Warn(Fmt("ProxyApp hash does not match. Expected %X, got %X", hash, res.Data)) } return proxyAppConn diff --git a/proxy/remote_app_conn.go b/proxy/remote_app_conn.go index ce93101b4..094ef36bc 100644 --- a/proxy/remote_app_conn.go +++ b/proxy/remote_app_conn.go @@ -12,7 +12,7 @@ type remoteAppConn struct { } func NewRemoteAppConn(addr string) (*remoteAppConn, error) { - client, err := tmspcli.NewClient(addr) + client, err := tmspcli.NewClient(addr, false) if err != nil { return nil, err }