Skip to content
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

Fix named network default disabled for downgrade protection #6943

Conversation

garyschulte
Copy link
Contributor

@garyschulte garyschulte commented Apr 12, 2024

PR description

Address downgrade default for named networks. Previously the check for named network was only considering command line params, and not toml config files.

Also implemented Comparable on VersionMetadata, and added explicit version test cases for a variety of build versions.

Fixed Issue(s)

Thanks for sending a pull request! Have you done the following?

  • Checked out our contribution guidelines?
  • Considered documentation and added the doc-change-required label to this PR if updates are required.
  • Considered the changelog and included an update if required.
  • For database changes (e.g. KeyValueSegmentIdentifier) considered compatibility and performed forwards and backwards compatibility tests

Locally, you can run these tests to catch failures early:

  • unit tests: ./gradlew build
  • acceptance tests: ./gradlew acceptanceTest
  • integration tests: ./gradlew integrationTest
  • reference tests: ./gradlew ethereum:referenceTests:referenceTests

implement comparable for VersionMetadata, add explicit coverage

Signed-off-by: garyschulte <garyschulte@gmail.com>
@garyschulte garyschulte force-pushed the bugfix/disable-downgrade-protection-for-named-networks branch from 7800a08 to 52b779e Compare April 12, 2024 19:10
Copy link
Contributor

@non-fungible-nelson non-fungible-nelson left a comment

Choose a reason for hiding this comment

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

one nit

Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: garyschulte <garyschulte@gmail.com>
@non-fungible-nelson
Copy link
Contributor

LGTM 🚢 Cannot provide approval

Signed-off-by: garyschulte <garyschulte@gmail.com>
@macfarla macfarla merged commit ec06ab5 into hyperledger:main Apr 14, 2024
42 checks passed
@garyschulte garyschulte deleted the bugfix/disable-downgrade-protection-for-named-networks branch April 15, 2024 14:46
amsmota pushed a commit to Citi/besu that referenced this pull request Apr 16, 2024
…ger#6943)

* fix default disabled for downgrade protection on named networks
implement comparable for VersionMetadata, add explicit coverage

Signed-off-by: garyschulte <garyschulte@gmail.com>

* test method rename

Signed-off-by: garyschulte <garyschulte@gmail.com>

* remove errant comment

Signed-off-by: garyschulte <garyschulte@gmail.com>

* do not use static version metadata, to facilitate unit tests

Signed-off-by: garyschulte <garyschulte@gmail.com>

---------

Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: amsmota <antonio.mota@citi.com>
amsmota pushed a commit to Citi/besu that referenced this pull request Apr 16, 2024
…ger#6943)

* fix default disabled for downgrade protection on named networks
implement comparable for VersionMetadata, add explicit coverage

Signed-off-by: garyschulte <garyschulte@gmail.com>

* test method rename

Signed-off-by: garyschulte <garyschulte@gmail.com>

* remove errant comment

Signed-off-by: garyschulte <garyschulte@gmail.com>

* do not use static version metadata, to facilitate unit tests

Signed-off-by: garyschulte <garyschulte@gmail.com>

---------

Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: amsmota <antonio.mota@citi.com>
macfarla pushed a commit to macfarla/besu that referenced this pull request Apr 26, 2024
…ger#6943)

* fix default disabled for downgrade protection on named networks
implement comparable for VersionMetadata, add explicit coverage

Signed-off-by: garyschulte <garyschulte@gmail.com>

* test method rename

Signed-off-by: garyschulte <garyschulte@gmail.com>

* remove errant comment

Signed-off-by: garyschulte <garyschulte@gmail.com>

* do not use static version metadata, to facilitate unit tests

Signed-off-by: garyschulte <garyschulte@gmail.com>

---------

Signed-off-by: garyschulte <garyschulte@gmail.com>
matthew1001 pushed a commit to kaleido-io/besu that referenced this pull request Jun 7, 2024
…ger#6943)

* fix default disabled for downgrade protection on named networks
implement comparable for VersionMetadata, add explicit coverage

Signed-off-by: garyschulte <garyschulte@gmail.com>

* test method rename

Signed-off-by: garyschulte <garyschulte@gmail.com>

* remove errant comment

Signed-off-by: garyschulte <garyschulte@gmail.com>

* do not use static version metadata, to facilitate unit tests

Signed-off-by: garyschulte <garyschulte@gmail.com>

---------

Signed-off-by: garyschulte <garyschulte@gmail.com>
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.

3 participants