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

Add network support for ephemery testnet #7471

Conversation

gconnect
Copy link
Contributor

@gconnect gconnect commented Aug 16, 2024

PR description

Fixed Issue(s)

  • Add Ephemery genesis file to the resources
  • Add Ephemery network to NetworkName
  • Add test for Ephemery to BesuCommandTest
  • Add Ephemery to NetworkDeprecationTest file
  • Add Ephemery genesis function to automatically generate a new genesis file in line with the spec requirements for Ephermery Testnet
  • Add test for the genesis generation function

This PR is in response to this issue 7404

@non-fungible-nelson please review when you have some time.

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

@gconnect gconnect force-pushed the add-network-support-for-ephemery-testnet branch from 3f6b682 to f58f4e0 Compare August 17, 2024 21:59
@macfarla
Copy link
Contributor

@gconnect is this still WIP as the title suggests, or ready for review?

@gconnect
Copy link
Contributor Author

gconnect commented Aug 21, 2024

@gconnect is this still WIP as the title suggests, or ready for review?

Yes @macfarla it is. Currently working on the requested changed. I have made most of the changes what is left is the test. Should be done with it later today and push update then remove the WIP.

Also a quick one, I created the standalone class under the utils directory am not sure if it's okay there.

@gconnect gconnect changed the title [WIP] Add network support for ephemery testnet Add network support for ephemery testnet Aug 23, 2024
@gconnect
Copy link
Contributor Author

@gconnect is this still WIP as the title suggests, or ready for review?

@macfarla is ready for review. Thank you.

macfarla and others added 23 commits August 26, 2024 13:47
)

* exclude permissioning test from default ATs run on PRs

Signed-off-by: Sally MacFarlane <[email protected]>

---------

Signed-off-by: Sally MacFarlane <[email protected]>
Signed-off-by: gconnect <[email protected]>
… trace (hyperledger#7336)

* eliminate non-constant string concatenation from debug and trace

Signed-off-by: Sally MacFarlane <[email protected]>

* adjustments

Signed-off-by: Sally MacFarlane <[email protected]>

---------

Signed-off-by: Sally MacFarlane <[email protected]>
Signed-off-by: gconnect <[email protected]>
Signed-off-by: Simon Dudley <[email protected]>
Signed-off-by: gconnect <[email protected]>
---------

Signed-off-by: Simon Dudley <[email protected]>
Signed-off-by: gconnect <[email protected]>
…perledger#7296)

Optimistic transaction parallelization execution during block processing to improve the performances. This feature can enabled with a flag --Xbonsai-parallel-tx-processing-enabled=true

Signed-off-by: Karim Taam <[email protected]>
Co-authored-by: Ameziane H <[email protected]>
Co-authored-by: garyschulte <[email protected]>
Signed-off-by: gconnect <[email protected]>
…7353)

* 7732: Remove datagas related stuff in favour of blobgas

Signed-off-by: Matilda Clerke <[email protected]>

---------

Signed-off-by: Matilda Clerke <[email protected]>
Signed-off-by: gconnect <[email protected]>
Fix NPE for legacy ForkId with no forks

Signed-off-by: [email protected] <[email protected]>
Signed-off-by: gconnect <[email protected]>
…resh, not just the first one (hyperledger#7314)

* Add new config option to use bootnodes during any peer table refresh, not just the first one

Signed-off-by: Matthew Whitehead <[email protected]>

* Update everything-config list

Signed-off-by: Matthew Whitehead <[email protected]>

* Revert debug setting

Signed-off-by: Matthew Whitehead <[email protected]>

* Update ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery/internal/PeerDiscoveryController.java

Co-authored-by: Stefan Pingel <[email protected]>
Signed-off-by: Matt Whitehead <[email protected]>

---------

Signed-off-by: Matthew Whitehead <[email protected]>
Signed-off-by: Matt Whitehead <[email protected]>
Co-authored-by: Stefan Pingel <[email protected]>
Signed-off-by: gconnect <[email protected]>
This avoids executing TrieLogPruner.preload

Signed-off-by: Simon Dudley <[email protected]>
Signed-off-by: gconnect <[email protected]>
Add unit tests to the EXTCODE* series operations.
Also, put all EVM operations tests in the proper package.

Signed-off-by: Danno Ferrin <[email protected]>
Signed-off-by: gconnect <[email protected]>
Signed-off-by: gconnect <[email protected]>
…ction pool (hyperledger#7359)

* Introduce score for pending transactions

Signed-off-by: Fabio Di Fabio <[email protected]>

* Introduce score for pending transactions

Signed-off-by: Fabio Di Fabio <[email protected]>

* Update package javadoc

Signed-off-by: Fabio Di Fabio <[email protected]>

---------

Signed-off-by: Fabio Di Fabio <[email protected]>
Signed-off-by: gconnect <[email protected]>
…yperledger#7377)

* Update GeneralStateTestCaseEipSpec for use in linea-arithmetization

Signed-off-by: Gaurav Ahuja <[email protected]>

* formatting

Signed-off-by: Sally MacFarlane <[email protected]>

---------

Signed-off-by: Gaurav Ahuja <[email protected]>
Signed-off-by: Sally MacFarlane <[email protected]>
Co-authored-by: Sally MacFarlane <[email protected]>
Signed-off-by: gconnect <[email protected]>
…#7357)

There is still a startup error when bonsai-limit-trie-logs-enabled is explicitly set to true

---------

Signed-off-by: Simon Dudley <[email protected]>
Signed-off-by: gconnect <[email protected]>
* Do not maintain connections to bootnodes

Signed-off-by: Matthew Whitehead <[email protected]>

* Update changelog entry

Signed-off-by: Matthew Whitehead <[email protected]>

---------

Signed-off-by: Matthew Whitehead <[email protected]>
Co-authored-by: Stefan Pingel <[email protected]>
Signed-off-by: gconnect <[email protected]>
Also reduce pruning window from 30_000 to 5_000

---------

Signed-off-by: Simon Dudley <[email protected]>
Co-authored-by: Sally MacFarlane <[email protected]>
Signed-off-by: gconnect <[email protected]>
kesrishubham2510 and others added 7 commits August 26, 2024 13:47
…Info is null (hyperledger#7508)

Signed-off-by: kesrishubham2510 <[email protected]>
Co-authored-by: Sally MacFarlane <[email protected]>
Signed-off-by: gconnect <[email protected]>
Signed-off-by: Neo <[email protected]>
Co-authored-by: Sally MacFarlane <[email protected]>
Signed-off-by: gconnect <[email protected]>
…er#7517)

* fleet-mode safe behavior for fcU in SynchronizationService

Signed-off-by: garyschulte <[email protected]>

* spotless

Signed-off-by: garyschulte <[email protected]>

---------

Signed-off-by: garyschulte <[email protected]>
Signed-off-by: gconnect <[email protected]>
* EVMTool should respect --genesis option

Update the code so that the genesis file option will be respected when
set. Also, default --fork options should set a rational base fee.

Signed-off-by: Danno Ferrin <[email protected]>

---------

Signed-off-by: Danno Ferrin <[email protected]>
Signed-off-by: gconnect <[email protected]>
The fuzzAll task depended on targets that didn't exist.

Signed-off-by: Danno Ferrin <[email protected]>
Co-authored-by: Sally MacFarlane <[email protected]>
Signed-off-by: gconnect <[email protected]>
* Release checklist update

More details on homebrew and docs releases in release checklist issue template

Co-authored-by: Simon Dudley <[email protected]>
Signed-off-by: Chaminda Divitotawela <[email protected]>

* Remove release creation for besu-docs from checklist

It has been agreed there is no value creating releases in the hyperledger/besu-docs repo. Remove the related instruction from checklist

Signed-off-by: Chaminda Divitotawela <[email protected]>

---------

Signed-off-by: Chaminda Divitotawela <[email protected]>
Signed-off-by: Chaminda Divitotawela <[email protected]>
Co-authored-by: Simon Dudley <[email protected]>
Signed-off-by: gconnect <[email protected]>
@gconnect gconnect force-pushed the add-network-support-for-ephemery-testnet branch from 4a45494 to ef55bed Compare August 26, 2024 12:48
@gconnect
Copy link
Contributor Author

@macfarla I have made the requested changes.

@gconnect
Copy link
Contributor Author

gconnect commented Aug 28, 2024

@macfarla I have made the requested changes and added the update changelog.md file

Copy link
Contributor

@macfarla macfarla left a comment

Choose a reason for hiding this comment

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

it's coming together! a few more comments

ephemeryGenesisFile =
new EphemeryGenesisFile(readGenesisConfigFile(), readGenesisConfigOptions());
ephemeryGenesisFile.updateGenesis();
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I actually think lines 1096 - 1100 should be part of readGenesisConfigFile() so that calling readGenesisConfigFile will always give you the effective genesis file, and then maybe you don't need to modify the EPHEMERY networkName object itself.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moving the code to this readGenesisConfigFile() resulted in a recursive error. I placed the code where it is now because I want the check to happen on client start

@gconnect gconnect force-pushed the add-network-support-for-ephemery-testnet branch from 36e1ce1 to 2027ff1 Compare August 30, 2024 05:12
@gconnect
Copy link
Contributor Author

gconnect commented Sep 3, 2024

@macfarla I am closing the PR. I opened a new PR here

@gconnect
Copy link
Contributor Author

gconnect commented Sep 3, 2024

@macfarla I am closing the PR. I opened a new PR #7563

@gconnect gconnect closed this Sep 3, 2024
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.