mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-14 13:51:21 +00:00
fixes
This commit is contained in:
@ -122,8 +122,8 @@ func NewCounterApplication() *CounterApplication {
|
|||||||
return &CounterApplication{}
|
return &CounterApplication{}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (app *CounterApplication) Info() string {
|
func (app *CounterApplication) Info() (string, *tmsp.TMSPInfo, *tmsp.LastBlockInfo, *tmsp.ConfigInfo) {
|
||||||
return Fmt("txs:%v", app.txCount)
|
return Fmt("txs:%v", app.txCount), nil, nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (app *CounterApplication) SetOption(key string, value string) (log string) {
|
func (app *CounterApplication) SetOption(key string, value string) (log string) {
|
||||||
|
@ -16,7 +16,7 @@ import (
|
|||||||
type AppConnTest interface {
|
type AppConnTest interface {
|
||||||
EchoAsync(string) *tmspcli.ReqRes
|
EchoAsync(string) *tmspcli.ReqRes
|
||||||
FlushSync() error
|
FlushSync() error
|
||||||
InfoSync() (res types.Result)
|
InfoSync() (types.Result, *types.TMSPInfo, *types.LastBlockInfo, *types.ConfigInfo)
|
||||||
}
|
}
|
||||||
|
|
||||||
type appConnTest struct {
|
type appConnTest struct {
|
||||||
@ -35,7 +35,7 @@ func (app *appConnTest) FlushSync() error {
|
|||||||
return app.appConn.FlushSync()
|
return app.appConn.FlushSync()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (app *appConnTest) InfoSync() types.Result {
|
func (app *appConnTest) InfoSync() (types.Result, *types.TMSPInfo, *types.LastBlockInfo, *types.ConfigInfo) {
|
||||||
return app.appConn.InfoSync()
|
return app.appConn.InfoSync()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -114,7 +114,7 @@ func TestInfo(t *testing.T) {
|
|||||||
proxy := NewAppConnTest(cli)
|
proxy := NewAppConnTest(cli)
|
||||||
t.Log("Connected")
|
t.Log("Connected")
|
||||||
|
|
||||||
res := proxy.InfoSync()
|
res, _, _, _ := proxy.InfoSync()
|
||||||
if res.IsErr() {
|
if res.IsErr() {
|
||||||
t.Errorf("Unexpected error: %v", err)
|
t.Errorf("Unexpected error: %v", err)
|
||||||
}
|
}
|
||||||
|
@ -19,6 +19,7 @@ func (tm2pb) Header(header *Header) *types.Header {
|
|||||||
LastBlockParts: TM2PB.PartSetHeader(header.LastBlockParts),
|
LastBlockParts: TM2PB.PartSetHeader(header.LastBlockParts),
|
||||||
LastCommitHash: header.LastCommitHash,
|
LastCommitHash: header.LastCommitHash,
|
||||||
DataHash: header.DataHash,
|
DataHash: header.DataHash,
|
||||||
|
AppHash: header.AppHash,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user