8000 Print warning message when we find any disabled network upgrade by rmoreliovlabs · Pull Request #3038 · rsksmart/rskj · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Print warning message when we find any disabled network upgrade #3038

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

Merged
merged 3 commits into from
Apr 8, 2025

Conversation

rmoreliovlabs
Copy link
Contributor
@rmoreliovlabs rmoreliovlabs commented Mar 17, 2025

Description

We are printing a warning message when running the node so we know which NetworkUpgrade are disabled at the point of the node running.

Motivation and Context

We had an issue where the node of a client was creating a hard fork due to client not having the latest network upgrade LOVELL700 enabled / added to their config.

We spent a lot of time trying to investigate the issue and we found out it was a configuration issue. If have noticed the configuration issue before we wouldn't spend a lot of time debugging the problem.

How Has This Been Tested?

We just ran a node from scratch. At the beginning since the block is at height of 0, all the existing network upgrades will be shown, even if they are added to the rsk config, because they will not be active due to the best block height.

Finally, the same node was restarted, so we were able to see how the number of network upgrades printed as disabled were decrease as the best block height was increasing.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • Tests for the changes have been added (for bug fixes / features)
  • Requires Activation Code (Hard Fork)
  • Other information:

Copy link
github-actions bot commented Mar 17, 2025

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

Copy link
Contributor
@Vovchyk Vovchyk left a comment

Choose a reason for hiding this comment

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

in general, the PR lgtm, but some tests are failing

Vovchyk
Vovchyk previously approved these changes Mar 18, 2025
Copy link
Contributor
@fmacleal fmacleal left a comment

Choose a reason for hiding this comment

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

Good job!

I have a few comments and suggestions, let me know your opinion.

Copy link
Contributor
@fmacleal fmacleal left a comment

Choose a reason for hiding this comment

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

Thank you for have replied and addressed so quickly!
🙏

@rmoreliovlabs rmoreliovlabs force-pushed the warn-when-network-upgrade-is--disabled branch from 48146a2 to 055bc87 Compare April 8, 2025 12:47
Copy link
sonarqubecloud bot commented Apr 8, 2025

@Vovchyk Vovchyk merged commit dd1e79b into master Apr 8, 2025
12 checks passed
@Vovchyk Vovchyk deleted the warn-when-network-upgrade-is--disabled branch April 8, 2025 13:07
@aeidelman aeidelman added this to the Lovell 7.1.0 milestone May 13, 2025
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.

4 participants
0