def

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SubModName = "consensus"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsensusConfig

type ConsensusConfig struct {
	// 获取本次共识的类型名称
	ConsensusName string `json:"name"`
	// 获取本次共识专属属性
	Config string `json:"config"`
	// 获取本次共识的起始高度
	StartHeight int64 `json:"height,omitempty"`
	// 本次共识在consensus slice中的index
	Index int `json:"index,omitempty"`
}

ConsensusConfig 特定共识的字段标示

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL