Skip to content

Commit

Permalink
add method to start network migration
Browse files Browse the repository at this point in the history
  • Loading branch information
uprendis authored and quan8 committed Mar 8, 2021
1 parent 14864b9 commit 5ecdc37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contracts/sfc/Staker.sol
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,10 @@ contract Stakers is Ownable, StakersConstants, Version {
emit NetworkUpgradeActivated(minVersion);
}

function _startNetworkMigration(uint256 version) onlyOwner external {
emit NetworkMigrationStarted(version);
}

function _updateStakeTokenizerAddress(address addr) onlyOwner external {
stakeTokenizerAddress = addr;
}
Expand Down
1 change: 1 addition & 0 deletions contracts/sfc/StakerConstants.sol
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,6 @@ contract StakersConstants {
event UpdatedOfflinePenaltyThreshold(uint256 blocksNum, uint256 period);
event UpdatedMinGasPrice(uint256 minGasPrice);
event NetworkUpgradeActivated(uint256 minVersion);
event NetworkMigrationStarted(uint256 version);
event UpdatedSlashingRefundRatio(uint256 indexed validatorID, uint256 refundRatio);
}

0 comments on commit 5ecdc37

Please # to comment.