Documentation ¶
Overview ¶
Copyright © 2021 NAME HERE <EMAIL ADDRESS>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2021 NAME HERE <EMAIL ADDRESS>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Variables
- func AddPrometheusMetrics(mux *http.ServeMux, out io.Writer)
- func EnableDebugAndMetrics(ctx context.Context, out io.Writer)
- func Execute()
- func NewSingleSignerValidator(out io.Writer, acceptRisk bool) (*signer.SingleSignerValidator, error)
- func NewThresholdValidator(ctx context.Context, logger cometlog.Logger) ([]cometservice.Service, *signer.ThresholdValidator, error)
- type AddressCmdOutput
- type FilePVLastSignState
- type Info
Constants ¶
This section is empty.
Variables ¶
var ( // application's version string Version = "" // commit Commit = "" // sdk version SDKVersion = "" // tendermint version CBFTVersion = "" )
Functions ¶
func EnableDebugAndMetrics ¶
EnableDebugAndMetrics - Initialization errors are not fatal, only logged
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func NewThresholdValidator ¶
func NewThresholdValidator( ctx context.Context, logger cometlog.Logger, ) ([]cometservice.Service, *signer.ThresholdValidator, error)
Types ¶
type AddressCmdOutput ¶
type FilePVLastSignState ¶
type FilePVLastSignState struct { Height int64 `json:"height"` Round int32 `json:"round"` Step int8 `json:"step"` }
Snippet Taken from https://raw.githubusercontent.com/cometbft/cometbft/main/privval/file.go FilePVLastSignState stores the mutable part of PrivValidator.
type Info ¶
type Info struct { Version string `json:"version" yaml:"version"` GitCommit string `json:"commit" yaml:"commit"` GoVersion string `json:"go_version" yaml:"go_version"` CosmosSdkVersion string `json:"cosmos_sdk_version" yaml:"cosmos_sdk_version"` CometBFTVersion string `json:"cometbft_version" yaml:"cometbft_version"` }
Info defines the application version information.