Documentation ¶
Index ¶
- func CloseDb(ldb db.DB)
- func CloseDbm(ldb dbm.DB)
- func InitWalMessage(ver TMVersionType, tmPath string)
- func PrintWalMessage(ver TMVersionType, tmPath string)
- func ResetEthHeight(dbPath string, height int64)
- func ResetNodeWalHeight(ver TMVersionType, tmPath string, height int64)
- func ResetPrivValHeight(ver TMVersionType, tmPath string, height int64)
- func UpgradeNodeCsWal(oTmPath, nTmPath string)
- type TMVersionType
- type TmConfig
- type TmCsWal
- type TmDataStore
- func (ts *TmDataStore) CheckNeedUpgrade(privVal *privval.FilePV) bool
- func (ts *TmDataStore) GetTotalHeight(isNew bool)
- func (ts *TmDataStore) OnBlockRecover(newVersion bool, resetHeight int64)
- func (ts *TmDataStore) OnBlockStore(startHeight int64)
- func (ts *TmDataStore) OnStop()
- func (ts *TmDataStore) UpdateGenesisDocInStateDB()
- type TmEthDb
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitWalMessage ¶
func InitWalMessage(ver TMVersionType, tmPath string)
func PrintWalMessage ¶
func PrintWalMessage(ver TMVersionType, tmPath string)
func ResetEthHeight ¶
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 ¶
oTmPath, nTmPath is /home/share/chaindata/peerx/tendermint
func (*TmConfig) GetTopPrivVal ¶
func (*TmConfig) ResetPvHeight ¶
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 (*TmCsWal) InitWalMessage ¶
func (tm *TmCsWal) InitWalMessage()
func (*TmCsWal) PrintWalMessage ¶
func (tm *TmCsWal) PrintWalMessage()
func (*TmCsWal) ResetHeight ¶
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 (*TmEthDb) PrintHeader ¶
func (te *TmEthDb) PrintHeader()
func (*TmEthDb) ResetHeight ¶
Click to show internal directories.
Click to hide internal directories.