mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-05 23:57:04 +00:00
s/GetHash/Commit/g
This commit is contained in:
+4
-4
@@ -207,8 +207,8 @@ func (cli *TMSPClient) CheckTxAsync(tx []byte) *ReqRes {
|
||||
return cli.queueRequest(types.RequestCheckTx(tx))
|
||||
}
|
||||
|
||||
func (cli *TMSPClient) GetHashAsync() *ReqRes {
|
||||
return cli.queueRequest(types.RequestGetHash())
|
||||
func (cli *TMSPClient) CommitAsync() *ReqRes {
|
||||
return cli.queueRequest(types.RequestCommit())
|
||||
}
|
||||
|
||||
func (cli *TMSPClient) QueryAsync(query []byte) *ReqRes {
|
||||
@@ -251,8 +251,8 @@ func (cli *TMSPClient) CheckTxSync(tx []byte) (code types.CodeType, result []byt
|
||||
return res.Code, res.Data, res.Log, nil
|
||||
}
|
||||
|
||||
func (cli *TMSPClient) GetHashSync() (hash []byte, log string, err error) {
|
||||
reqres := cli.queueRequest(types.RequestGetHash())
|
||||
func (cli *TMSPClient) CommitSync() (hash []byte, log string, err error) {
|
||||
reqres := cli.queueRequest(types.RequestCommit())
|
||||
cli.FlushSync()
|
||||
if cli.err != nil {
|
||||
return nil, "", cli.err
|
||||
|
||||
Reference in New Issue
Block a user