Skip to content

Commit

Permalink
Update XDPoS.go
Browse files Browse the repository at this point in the history
  • Loading branch information
GalaxySciTech committed Sep 2, 2024
1 parent c512408 commit 64dfda0
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions consensus/XDPoS/XDPoS.go
Original file line number Diff line number Diff line change
Expand Up @@ -560,13 +560,3 @@ func (x *XDPoS) GetEpochSwitchInfoBetween(chain consensus.ChainReader, begin, en
// Default "v1"
return nil, errors.New("not supported in the v1 consensus")
}

func UpgradeXDCValidtorV2(statedb *state.StateDB) {
log.Info("poc", "MasternodeVotingSMC", common.MasternodeVotingSMC, "step", 1)
addr := common.HexToAddress(common.MasternodeVotingSMC)
// upgrade code
statedb.SetCode(addr, common.FromHex(common.XDCValidatorV2Code))
log.Info("poc", "MasternodeVotingSMC", common.XDCValidatorV2Code, "step", 2)

}

0 comments on commit 64dfda0

Please sign in to comment.