update for a new ABCI API

This commit is contained in:
Anton Kaliaev
2017-05-16 19:06:35 +02:00
parent e1792c1ea5
commit 91dc87e7c4
6 changed files with 71 additions and 33 deletions

View File

@@ -1,9 +1,10 @@
package proxy
import (
"fmt"
"sync"
"github.com/pkg/errors"
abcicli "github.com/tendermint/abci/client"
"github.com/tendermint/abci/example/dummy"
"github.com/tendermint/abci/types"
@@ -51,10 +52,9 @@ func NewRemoteClientCreator(addr, transport string, mustConnect bool) ClientCrea
}
func (r *remoteClientCreator) NewABCIClient() (abcicli.Client, error) {
// Run forever in a loop
remoteApp, err := abcicli.NewClient(r.addr, r.transport, r.mustConnect)
if err != nil {
return nil, fmt.Errorf("Failed to connect to proxy: %v", err)
return nil, errors.Wrap(err, "Failed to connect to proxy")
}
return remoteApp, nil
}