|
@ -122,6 +122,15 @@ func (c *HTTP) DumpConsensusState() (*ctypes.ResultDumpConsensusState, error) { |
|
|
return result, nil |
|
|
return result, nil |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (c *HTTP) Health() (*ctypes.ResultHealth, error) { |
|
|
|
|
|
result := new(ctypes.ResultHealth) |
|
|
|
|
|
_, err := c.rpc.Call("health", map[string]interface{}{}, result) |
|
|
|
|
|
if err != nil { |
|
|
|
|
|
return nil, errors.Wrap(err, "Health") |
|
|
|
|
|
} |
|
|
|
|
|
return result, nil |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
func (c *HTTP) BlockchainInfo(minHeight, maxHeight int64) (*ctypes.ResultBlockchainInfo, error) { |
|
|
func (c *HTTP) BlockchainInfo(minHeight, maxHeight int64) (*ctypes.ResultBlockchainInfo, error) { |
|
|
result := new(ctypes.ResultBlockchainInfo) |
|
|
result := new(ctypes.ResultBlockchainInfo) |
|
|
_, err := c.rpc.Call("blockchain", |
|
|
_, err := c.rpc.Call("blockchain", |
|
|