mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-08 22:23:11 +00:00
* Rename rpctypes.Context to CallInfo. Add methods to attach and recover this value from a context.Context. * Rework RPC method handlers to accept "real" contexts. - Replace *rpctypes.Context arguments with context.Context. - Update usage of RPC context fields to use CallInfo.
15 lines
386 B
Go
15 lines
386 B
Go
package core
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/tendermint/tendermint/rpc/coretypes"
|
|
)
|
|
|
|
// Health gets node health. Returns empty result (200 OK) on success, no
|
|
// response - in case of an error.
|
|
// More: https://docs.tendermint.com/master/rpc/#/Info/health
|
|
func (env *Environment) Health(ctx context.Context) (*coretypes.ResultHealth, error) {
|
|
return &coretypes.ResultHealth{}, nil
|
|
}
|