convert

package
v0.0.0-...-a3b524e Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2018 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CvtConsensusParams

func CvtConsensusParams(old *his.ConsensusParams) types.ConsensusParams

func CvtConsensusParamsInfo

func CvtConsensusParamsInfo(old *his.ConsensusParamsInfo) *state.ConsensusParamsInfo

func CvtNewEvidence

func CvtNewEvidence(old his.Evidence) types.Evidence

func CvtNewPrivKey

func CvtNewPrivKey(old gco.PrivKey) crypto.PrivKey

func CvtNewPubKey

func CvtNewPubKey(old gco.PubKey) crypto.PubKey

func CvtNewSignature

func CvtNewSignature(old gco.Signature) []byte

func CvtNewVote

func CvtNewVote(old *his.Vote) *types.Vote

func CvtValidatorsInfo

func CvtValidatorsInfo(old *his.ValidatorsInfo) *state.ValidatorsInfo

func DeleteABCIResponse

func DeleteABCIResponse(newVer bool, ldb dbm.DB, ndb db.DB, height int64)

func DeleteConsensusParam

func DeleteConsensusParam(newVer bool, ldb dbm.DB, ndb db.DB, height int64)

func DeleteValidator

func DeleteValidator(newVer bool, ldb dbm.DB, ndb db.DB, height int64)

func GetReader

func GetReader(ldb dbm.DB, key []byte) io.Reader

func InitState

func InitState(ldb dbm.DB) *state.State

func LoadOldABCIResponse

func LoadOldABCIResponse(db dbm.DB, height int64) *his.ABCIResponses

func LoadOldBlock

func LoadOldBlock(ldb dbm.DB, height int64) *oldtype.Block

func LoadOldBlockCommit

func LoadOldBlockCommit(ldb dbm.DB, height int64, prefix string) *otp.Commit

func LoadOldBlockMeta

func LoadOldBlockMeta(ldb dbm.DB, height int64) *oldtype.BlockMeta

func LoadOldBlockPart

func LoadOldBlockPart(ldb dbm.DB, height int64, index int) *oldtype.Part

func LoadOldBlockStoreStateJSON

func LoadOldBlockStoreStateJSON(ldb dbm.DB) oldtype.BlockStoreStateJSON

func LoadOldConsensusParamsInfo

func LoadOldConsensusParamsInfo(db dbm.DB, height int64) *his.ConsensusParamsInfo

func LoadOldGenesisDoc

func LoadOldGenesisDoc(db dbm.DB) *otp.GenesisDoc

func LoadOldState

func LoadOldState(ldb dbm.DB) *oldtype.State

func LoadOldTotalHeight

func LoadOldTotalHeight(ldb dbm.DB) int64

func LoadOldValidatorsInfo

func LoadOldValidatorsInfo(db dbm.DB, height int64) *his.ValidatorsInfo

func NewBlockFromOld

func NewBlockFromOld(ldb dbm.DB, height int64, lastBlockID *types.BlockID) *types.Block

func NewCommit

func NewCommit(oCommit *otp.Commit, block *types.Block) *types.Commit

func NewData

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

func NewHeader

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

func NewSeenCommit

func NewSeenCommit(ldb dbm.DB, block *types.Block) *types.Commit

func NewValidatorSet

func NewValidatorSet(oldValSet *his.ValidatorSet) *types.ValidatorSet

func SaveNewABCIResponse

func SaveNewABCIResponse(ldb dbm.DB, ndb db.DB, height int64)

func SaveNewConsensusParams

func SaveNewConsensusParams(ldb dbm.DB, ndb db.DB, height int64)

func SaveNewValidators

func SaveNewValidators(ldb dbm.DB, ndb db.DB, height int64)

func SaveOldBlockStoreStateJson

func SaveOldBlockStoreStateJson(db dbm.DB, bsj his.BlockStoreStateJSON)

func UpgradeGenesisJSON

func UpgradeGenesisJSON(oFile, nFile string) string

func UpgradePrivValidatorJson

func UpgradePrivValidatorJson(oFile, nFile string) (string, *privval.FilePV)

Types

This section is empty.

Jump to

Keyboard shortcuts

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