-
Notifications
You must be signed in to change notification settings - Fork 54
chore(upgrade): update short period time #463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| UpgradeName = "singularity_v1" | ||
|
|
||
| // UpgradeHeight defines the block height at which the Story singularity v1 upgrade is triggered. | ||
| UpgradeHeight = 1_000_000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@limengformal @edisonz0718 plz confirm upgrade height
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated in 28cbf48
| NewShortPeriodDuration = time.Second * 7776000 // 90 days | ||
|
|
||
| // SingularityHeight defines the block height at which the Story singularity period ends. | ||
| NewSingularityHeight = 1_500_000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@limengformal @edisonz0718 plz confirm new singularity height
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated in 28cbf48
59e5d68 to
a231b51
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not tested on my local, but LGTM
| case upgrades.StoryChainID: | ||
| return StoryUpgradeHeight, true | ||
| default: | ||
| return 0, false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it panic here? If there is another chain case, it's better to add explicitly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used to perform panic here, but I thought there maybe some other networks for testing in the future, then we may need to change the logic here.
Current way seems more scalable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can add a local flag for testing later. Also people can branch it out and modify the code if they want to create a custom network. Meanwhile leaving the node running if the chain id is not found seem to be a more risky option.
| case upgrades.StoryChainID: | ||
| return NewStorySingularityHeight, true | ||
| default: | ||
| return 0, false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should It panic here? If there is another chain case, it's better to add explicitly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used to perform panic here, but I thought there maybe some other networks for testing in the future, then we may need to change the logic here.
Current way seems more scalable.
|
|
||
| const ( | ||
| // UpgradeName defines the on-chain upgrade name for the singularity v1 upgrade. | ||
| UpgradeName = "singularity_v1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may want to name it virgil or v1.1.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May also want to change folder name v1 to virgil or v1.1.0
chore(upgrade): change upgrade name
b485135 to
99e8702
Compare
Binary uploaded successfully 🎉📦 Version Name: 1.1.0-unstable-0e98d46 |
…abs#463) update singularity height and short period time issue: none
update singularity height and short period time
issue: none