Documentation ¶
Index ¶
- func InitState()
- func LoadPrivValidators(folder string)
- func NewBlockFromOld(height int, lastBlockID *types.BlockID) *types.Block
- func NewBlockFromOld2(height int, lastBlockID *types.BlockID) (*types.Block, *types.PartSet)
- func NewCommit(oCommit *old.Commit, lastBlockID *types.BlockID) *types.Commit
- func NewData(o *old.Data) *types.Data
- func NewGenesisDoc(old *old.GenesisDoc) *types.GenesisDoc
- func NewHeader(o *old.Header, lastBlockId *types.BlockID) *types.Header
- func NewPrivValidator(oPath string) *types.PrivValidator
- func NewSeenCommit(height int, lastBlockID *types.BlockID) *types.Commit
- func NewValidatorSet(oValidatorSet *old.ValidatorSet) *types.ValidatorSet
- func OnBlockStore(startHeight int)
- func OnConfigToml(configFilePath string)
- func OnGenesisJSON(oPath, nPath string)
- func OnPrivValidatorJSON(oPath, nPath string)
- func OnStart(oTmRoot, nTmRoot string)
- func OnStop()
- func SaveBlock(batch dbm.Batch, block *types.Block, blockMeta *types.BlockMeta, ...)
- func SaveState(lastBlockID *types.BlockID)
- func SignaVote(index int, chainID string, vote *types.Vote) crypto.Signature
- func TotalHeight()
- type PrivValidators
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadPrivValidators ¶
func LoadPrivValidators(folder string)
func NewBlockFromOld2 ¶
func NewGenesisDoc ¶
func NewGenesisDoc(old *old.GenesisDoc) *types.GenesisDoc
func NewPrivValidator ¶
func NewPrivValidator(oPath string) *types.PrivValidator
func NewValidatorSet ¶
func NewValidatorSet(oValidatorSet *old.ValidatorSet) *types.ValidatorSet
func OnConfigToml ¶
func OnConfigToml(configFilePath string)
func OnGenesisJSON ¶
func OnGenesisJSON(oPath, nPath string)
func OnPrivValidatorJSON ¶
func OnPrivValidatorJSON(oPath, nPath string)
func TotalHeight ¶
func TotalHeight()
Types ¶
type PrivValidators ¶
type PrivValidators struct {
Validators []*types.PrivValidator
}
func (*PrivValidators) Len ¶
func (arr *PrivValidators) Len() int
func (*PrivValidators) Less ¶
func (arr *PrivValidators) Less(i, j int) bool
func (*PrivValidators) Swap ¶
func (arr *PrivValidators) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.