mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-26 07:12:16 +00:00
18 lines
439 B
Go
18 lines
439 B
Go
|
package core
|
||
|
|
||
|
import (
|
||
|
ctypes "github.com/tendermint/tendermint/rpc/core/types"
|
||
|
)
|
||
|
|
||
|
//-----------------------------------------------------------------------------
|
||
|
|
||
|
func TMSPQuery(query []byte) (*ctypes.ResultTMSPQuery, error) {
|
||
|
res := proxyAppQuery.QuerySync(query)
|
||
|
return &ctypes.ResultTMSPQuery{res}, nil
|
||
|
}
|
||
|
|
||
|
func TMSPInfo() (*ctypes.ResultTMSPInfo, error) {
|
||
|
res := proxyAppQuery.InfoSync()
|
||
|
return &ctypes.ResultTMSPInfo{res}, nil
|
||
|
}
|