op

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 CloseDb

func CloseDb(ldb db.DB)

func CloseDbm

func CloseDbm(ldb dbm.DB)

func InitWalMessage

func InitWalMessage(ver TMVersionType, tmPath string)

func PrintWalMessage

func PrintWalMessage(ver TMVersionType, tmPath string)

func ResetEthHeight

func ResetEthHeight(dbPath string, height int64)

func ResetNodeWalHeight

func ResetNodeWalHeight(ver TMVersionType, tmPath string, height int64)

func ResetPrivValHeight

func ResetPrivValHeight(ver TMVersionType, tmPath string, height int64)

func UpgradeNodeCsWal

func UpgradeNodeCsWal(oTmPath, nTmPath string)

Types

type TMVersionType

type TMVersionType string
const (
	TMVer0180 TMVersionType = "0.18.0"
	TMVer0231 TMVersionType = "0.23.1"
)

type TmConfig

type TmConfig struct {
	// contains filtered or unexported fields
}

func CreateTmConfig

func CreateTmConfig(oTmPath, nTmPath string) *TmConfig

oTmPath, nTmPath is /home/share/chaindata/peerx/tendermint

func (*TmConfig) GetTopPrivVal

func (tm *TmConfig) GetTopPrivVal() *privval.FilePV

func (*TmConfig) ResetPvHeight

func (tm *TmConfig) ResetPvHeight(height int64)

func (*TmConfig) UpdateAllPrivValFile

func (tm *TmConfig) UpdateAllPrivValFile()

func (*TmConfig) UpgradeAllGenesisAndPvFile

func (tm *TmConfig) UpgradeAllGenesisAndPvFile()

type TmCsWal

type TmCsWal struct {
	// contains filtered or unexported fields
}

func CreateTmCsWal

func CreateTmCsWal(oTmPath, nTmPath string) *TmCsWal

func (*TmCsWal) InitWalMessage

func (tm *TmCsWal) InitWalMessage()

func (*TmCsWal) PrintWalMessage

func (tm *TmCsWal) PrintWalMessage()

func (*TmCsWal) ResetHeight

func (tm *TmCsWal) ResetHeight(height int64)

type TmDataStore

type TmDataStore struct {
	// contains filtered or unexported fields
}

func CreateTmDataStore

func CreateTmDataStore(oldPath, newPath string) *TmDataStore

func (*TmDataStore) CheckNeedUpgrade

func (ts *TmDataStore) CheckNeedUpgrade(privVal *privval.FilePV) bool

func (*TmDataStore) GetTotalHeight

func (ts *TmDataStore) GetTotalHeight(isNew bool)

func (*TmDataStore) OnBlockRecover

func (ts *TmDataStore) OnBlockRecover(newVersion bool, resetHeight int64)

func (*TmDataStore) OnBlockStore

func (ts *TmDataStore) OnBlockStore(startHeight int64)

func (*TmDataStore) OnStop

func (ts *TmDataStore) OnStop()

func (*TmDataStore) UpdateGenesisDocInStateDB

func (ts *TmDataStore) UpdateGenesisDocInStateDB()

type TmEthDb

type TmEthDb struct {
	// contains filtered or unexported fields
}

func CreateTmEthDb

func CreateTmEthDb(tmPath string) *TmEthDb

func (*TmEthDb) Close

func (te *TmEthDb) Close()

func (*TmEthDb) GetAll

func (te *TmEthDb) GetAll()

func (*TmEthDb) PrintHeader

func (te *TmEthDb) PrintHeader()

func (*TmEthDb) ResetHeight

func (te *TmEthDb) ResetHeight(height int64)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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