mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-22 17:31:34 +00:00
CheckTx and DeliverTx return ResponseCheckTx and ResponseDeliverTx respectively
Commit now returns ResponseCommit
This commit is contained in:
@ -164,14 +164,14 @@ func (app *localClient) SetOptionSync(key string, value string) (res types.Resul
|
||||
return types.OK.SetLog(log)
|
||||
}
|
||||
|
||||
func (app *localClient) DeliverTxSync(tx []byte) (res types.Result) {
|
||||
func (app *localClient) DeliverTxSync(tx []byte) (res types.ResponseDeliverTx) {
|
||||
app.mtx.Lock()
|
||||
res = app.Application.DeliverTx(tx)
|
||||
app.mtx.Unlock()
|
||||
return res
|
||||
}
|
||||
|
||||
func (app *localClient) CheckTxSync(tx []byte) (res types.Result) {
|
||||
func (app *localClient) CheckTxSync(tx []byte) (res types.ResponseCheckTx) {
|
||||
app.mtx.Lock()
|
||||
res = app.Application.CheckTx(tx)
|
||||
app.mtx.Unlock()
|
||||
@ -185,7 +185,7 @@ func (app *localClient) QuerySync(reqQuery types.RequestQuery) (resQuery types.R
|
||||
return resQuery, nil
|
||||
}
|
||||
|
||||
func (app *localClient) CommitSync() (res types.Result) {
|
||||
func (app *localClient) CommitSync() (res types.ResponseCommit) {
|
||||
app.mtx.Lock()
|
||||
res = app.Application.Commit()
|
||||
app.mtx.Unlock()
|
||||
|
Reference in New Issue
Block a user