mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-24 18:21:38 +00:00
CommitSync() returns tmsp.Result
This commit is contained in:
@ -74,11 +74,11 @@ func (app *localAppConn) CheckTxAsync(tx []byte) *tmspcli.ReqRes {
|
||||
|
||||
func (app *localAppConn) CommitAsync() *tmspcli.ReqRes {
|
||||
app.mtx.Lock()
|
||||
hash, log := app.Application.Commit()
|
||||
res := app.Application.Commit()
|
||||
app.mtx.Unlock()
|
||||
return app.callback(
|
||||
tmsp.RequestCommit(),
|
||||
tmsp.ResponseCommit(hash, log),
|
||||
tmsp.ResponseCommit(res.Code, res.Data, res.Log),
|
||||
)
|
||||
}
|
||||
|
||||
@ -93,11 +93,11 @@ func (app *localAppConn) FlushSync() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (app *localAppConn) CommitSync() (hash []byte, log string, err error) {
|
||||
func (app *localAppConn) CommitSync() (res tmsp.Result) {
|
||||
app.mtx.Lock()
|
||||
hash, log = app.Application.Commit()
|
||||
res = app.Application.Commit()
|
||||
app.mtx.Unlock()
|
||||
return hash, log, nil
|
||||
return res
|
||||
}
|
||||
|
||||
func (app *localAppConn) InitChainSync(validators []*tmsp.Validator) (err error) {
|
||||
|
Reference in New Issue
Block a user