convert

package
v0.0.0-...-089bed4 Latest Latest
Warning

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

Go to latest
Published: May 14, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitState

func InitState()

func LoadPrivValidators

func LoadPrivValidators(folder string)

func NewBlockFromOld

func NewBlockFromOld(height int, lastBlockID *types.BlockID) *types.Block

func NewBlockFromOld2

func NewBlockFromOld2(height int, lastBlockID *types.BlockID) (*types.Block, *types.PartSet)

func NewCommit

func NewCommit(oCommit *old.Commit, lastBlockID *types.BlockID) *types.Commit

func NewData

func NewData(o *old.Data) *types.Data

func NewGenesisDoc

func NewGenesisDoc(old *old.GenesisDoc) *types.GenesisDoc

func NewHeader

func NewHeader(o *old.Header, lastBlockId *types.BlockID) *types.Header

func NewPrivValidator

func NewPrivValidator(oPath string) *types.PrivValidator

func NewSeenCommit

func NewSeenCommit(height int, lastBlockID *types.BlockID) *types.Commit

func NewValidatorSet

func NewValidatorSet(oValidatorSet *old.ValidatorSet) *types.ValidatorSet

func OnBlockStore

func OnBlockStore(startHeight int)

simulate the BlockStore api of blockchain

func OnConfigToml

func OnConfigToml(configFilePath string)

func OnGenesisJSON

func OnGenesisJSON(oPath, nPath string)

func OnPrivValidatorJSON

func OnPrivValidatorJSON(oPath, nPath string)

func OnStart

func OnStart(oTmRoot, nTmRoot string)

func OnStop

func OnStop()

func SaveBlock

func SaveBlock(batch dbm.Batch, block *types.Block, blockMeta *types.BlockMeta, seenCommit *types.Commit)

func SaveState

func SaveState(lastBlockID *types.BlockID)

func SignaVote

func SignaVote(index int, chainID string, vote *types.Vote) crypto.Signature

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)

Jump to

Keyboard shortcuts

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