Documentation ¶
Index ¶
- Constants
- type Upgrader
- func (u *Upgrader) CanUpgrade() bool
- func (u *Upgrader) CompleteMigration()
- func (u *Upgrader) GetVotes() map[common.Address]uint32
- func (u *Upgrader) IsValidTargetVersion() bool
- func (u *Upgrader) MigrateIdentityStateDb()
- func (u *Upgrader) ProcessVote(vote *types.Vote)
- func (u *Upgrader) RevertConfig(prevConfig *config.ConsensusConf)
- func (u *Upgrader) Start()
- func (u *Upgrader) Target() config.ConsensusVerson
- func (u *Upgrader) UpgradeBits() uint32
- func (u *Upgrader) UpgradeConfigTo(ver uint32) (prev *config.ConsensusConf)
- func (u *Upgrader) ValidateBlock(block *types.Block) error
Constants ¶
View Source
const TargetVersion = config.ConsensusV7
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Upgrader ¶
type Upgrader struct {
// contains filtered or unexported fields
}
func NewUpgrader ¶
func (*Upgrader) CanUpgrade ¶
func (*Upgrader) CompleteMigration ¶
func (u *Upgrader) CompleteMigration()
func (*Upgrader) IsValidTargetVersion ¶
func (*Upgrader) MigrateIdentityStateDb ¶
func (u *Upgrader) MigrateIdentityStateDb()
use to migrate identity state db in fast sync mode
func (*Upgrader) ProcessVote ¶
func (*Upgrader) RevertConfig ¶
func (u *Upgrader) RevertConfig(prevConfig *config.ConsensusConf)
func (*Upgrader) Target ¶
func (u *Upgrader) Target() config.ConsensusVerson
func (*Upgrader) UpgradeBits ¶
func (*Upgrader) UpgradeConfigTo ¶
func (u *Upgrader) UpgradeConfigTo(ver uint32) (prev *config.ConsensusConf)
Click to show internal directories.
Click to hide internal directories.