Skip to content

Conversation

@gezerui0124
Copy link
Contributor

update singularity height and short period time

issue: none

UpgradeName = "singularity_v1"

// UpgradeHeight defines the block height at which the Story singularity v1 upgrade is triggered.
UpgradeHeight = 1_000_000
Copy link
Contributor Author

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

Copy link
Contributor Author

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
Copy link
Contributor Author

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated in 28cbf48

@gezerui0124 gezerui0124 force-pushed the rayden/singularity-upgrade branch from 59e5d68 to a231b51 Compare January 31, 2025 10:42
Copy link
Contributor

@0xHansLee 0xHansLee left a 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
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

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
Copy link
Contributor

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

Copy link
Contributor Author

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"
Copy link
Contributor

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

Copy link
Contributor

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
@gezerui0124 gezerui0124 force-pushed the rayden/singularity-upgrade branch from b485135 to 99e8702 Compare February 1, 2025 20:21
@limengformal limengformal merged commit 0e98d46 into main Feb 1, 2025
12 checks passed
@limengformal limengformal deleted the rayden/singularity-upgrade branch February 1, 2025 20:47
@github-actions
Copy link

github-actions bot commented Feb 1, 2025

Binary uploaded successfully 🎉

📦 Version Name: 1.1.0-unstable-0e98d46
📦 Download Source: AWS S3

@gezerui0124 gezerui0124 changed the title chore(upgrade): update singularity height and short period time chore(upgrade): update short period time Feb 2, 2025
kim201212 pushed a commit to dsrvlabs/story that referenced this pull request Jul 22, 2025
…abs#463)

update singularity height and short period time

issue: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants