upgrade

package
v0.26.6-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: LGPL-3.0 Imports: 10 Imported by: 3

Documentation

Index

Constants

View Source
const TargetVersion = config.ConsensusV5

Variables

This section is empty.

Functions

This section is empty.

Types

type Upgrader

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

func NewUpgrader

func NewUpgrader(config *config.Config, appState *appstate.AppState, db dbm.DB) *Upgrader

func (*Upgrader) CanUpgrade

func (u *Upgrader) CanUpgrade() bool

func (*Upgrader) CompleteMigration

func (u *Upgrader) CompleteMigration()

func (*Upgrader) GetVotes

func (u *Upgrader) GetVotes() map[common.Address]uint32

func (*Upgrader) IsValidTargetVersion

func (u *Upgrader) IsValidTargetVersion() bool

func (*Upgrader) MigrateIdentityStateDb

func (u *Upgrader) MigrateIdentityStateDb()

use to migrate identity state db in fast sync mode

func (*Upgrader) ProcessVote

func (u *Upgrader) ProcessVote(vote *types.Vote)

func (*Upgrader) RevertConfig

func (u *Upgrader) RevertConfig(prevConfig *config.ConsensusConf)

func (*Upgrader) Start

func (u *Upgrader) Start()

func (*Upgrader) Target

func (u *Upgrader) Target() config.ConsensusVerson

func (*Upgrader) UpgradeBits

func (u *Upgrader) UpgradeBits() uint32

func (*Upgrader) UpgradeConfigTo

func (u *Upgrader) UpgradeConfigTo(ver uint32) (prev *config.ConsensusConf)

func (*Upgrader) ValidateBlock

func (u *Upgrader) ValidateBlock(block *types.Block) error

Jump to

Keyboard shortcuts

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