Skip to content

Add network support for ephemery testnet#7471

Closed
gconnect wants to merge 134 commits intobesu-eth:mainfrom
gconnect:add-network-support-for-ephemery-testnet
Closed

Add network support for ephemery testnet#7471
gconnect wants to merge 134 commits intobesu-eth:mainfrom
gconnect:add-network-support-for-ephemery-testnet

Conversation

@gconnect
Copy link
Copy Markdown
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
Comment thread besu/src/main/java/org/hyperledger/besu/cli/config/NetworkName.java
Comment thread besu/src/test/java/org/hyperledger/besu/cli/BesuCommandTest.java Outdated
Comment thread temp-ephemery.json Outdated
Comment thread evm/src/test/java/org/hyperledger/besu/evm/operation/Create2OperationTest.java Outdated
Comment thread besu/src/main/java/org/hyperledger/besu/cli/BesuCommand.java Outdated
@macfarla
Copy link
Copy Markdown
Contributor

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

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

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

@macfarla is ready for review. Thank you.

Comment thread besu/src/main/java/org/hyperledger/besu/cli/config/NetworkName.java
Comment thread besu/src/main/java/org/hyperledger/besu/util/GenerateEphemeryGenesisFile.java Outdated
Comment thread besu/src/main/java/org/hyperledger/besu/cli/config/NetworkName.java
Comment thread besu/src/main/java/org/hyperledger/besu/util/GenerateEphemeryGenesisFile.java Outdated
Comment thread besu/src/main/java/org/hyperledger/besu/util/GenerateEphemeryGenesisFile.java Outdated
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 <macfarla.github@gmail.com>

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: gconnect <agatevureglory@gmail.com>
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
Signed-off-by: gconnect <agatevureglory@gmail.com>
… trace (besu-eth#7336)

* eliminate non-constant string concatenation from debug and trace

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>

* adjustments

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: gconnect <agatevureglory@gmail.com>
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Signed-off-by: gconnect <agatevureglory@gmail.com>
---------

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Signed-off-by: gconnect <agatevureglory@gmail.com>
…su-eth#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 <karim.t2am@gmail.com>
Co-authored-by: Ameziane H <ameziane.hamlat@consensys.net>
Co-authored-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: gconnect <agatevureglory@gmail.com>
* 7732: Remove datagas related stuff in favour of blobgas

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>

---------

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>
Signed-off-by: gconnect <agatevureglory@gmail.com>
Fix NPE for legacy ForkId with no forks

Signed-off-by: stefan.pingel@consensys.net <stefan.pingel@consensys.net>
Signed-off-by: gconnect <agatevureglory@gmail.com>
…resh, not just the first one (besu-eth#7314)

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

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>

* Update everything-config list

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>

* Revert debug setting

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>

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

Co-authored-by: Stefan Pingel <16143240+pinges@users.noreply.github.com>
Signed-off-by: Matt Whitehead <matthew1001@hotmail.com>

---------

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
Signed-off-by: Matt Whitehead <matthew1001@hotmail.com>
Co-authored-by: Stefan Pingel <16143240+pinges@users.noreply.github.com>
Signed-off-by: gconnect <agatevureglory@gmail.com>
This avoids executing TrieLogPruner.preload

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Signed-off-by: gconnect <agatevureglory@gmail.com>
Add unit tests to the EXTCODE* series operations.
Also, put all EVM operations tests in the proper package.

Signed-off-by: Danno Ferrin <danno@numisight.com>
Signed-off-by: gconnect <agatevureglory@gmail.com>
Signed-off-by: gconnect <agatevureglory@gmail.com>
Signed-off-by: gconnect <agatevureglory@gmail.com>
Signed-off-by: gconnect <agatevureglory@gmail.com>
Signed-off-by: gconnect <agatevureglory@gmail.com>
Signed-off-by: gconnect <agatevureglory@gmail.com>
…ction pool (besu-eth#7359)

* Introduce score for pending transactions

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>

* Introduce score for pending transactions

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>

* Update package javadoc

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>

---------

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Signed-off-by: gconnect <agatevureglory@gmail.com>
…esu-eth#7377)

* Update GeneralStateTestCaseEipSpec for use in linea-arithmetization

Signed-off-by: Gaurav Ahuja <gauravahuja9@gmail.com>

* formatting

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>

---------

Signed-off-by: Gaurav Ahuja <gauravahuja9@gmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: gconnect <agatevureglory@gmail.com>
…act (besu-eth#7380)

Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: gconnect <agatevureglory@gmail.com>
There is still a startup error when bonsai-limit-trie-logs-enabled is explicitly set to true

---------

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Signed-off-by: gconnect <agatevureglory@gmail.com>
* Do not maintain connections to bootnodes

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>

* Update changelog entry

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>

---------

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
Co-authored-by: Stefan Pingel <16143240+pinges@users.noreply.github.com>
Signed-off-by: gconnect <agatevureglory@gmail.com>
Also reduce pruning window from 30_000 to 5_000

---------

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: gconnect <agatevureglory@gmail.com>
…exist (besu-eth#7305)

Signed-off-by: Jason Frame <jason.frame@consensys.net>
Signed-off-by: gconnect <agatevureglory@gmail.com>
kesrishubham2510 and others added 7 commits August 26, 2024 13:47
…Info is null (besu-eth#7508)

Signed-off-by: kesrishubham2510 <shubhamkeshari90@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: gconnect <agatevureglory@gmail.com>
Signed-off-by: Neo <neowang725@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: gconnect <agatevureglory@gmail.com>
…7517)

* fleet-mode safe behavior for fcU in SynchronizationService

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

* spotless

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

---------

Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: gconnect <agatevureglory@gmail.com>
* 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 <danno@numisight.com>

---------

Signed-off-by: Danno Ferrin <danno@numisight.com>
Signed-off-by: gconnect <agatevureglory@gmail.com>
The fuzzAll task depended on targets that didn't exist.

Signed-off-by: Danno Ferrin <danno@numisight.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: gconnect <agatevureglory@gmail.com>
* Release checklist update

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

Co-authored-by: Simon Dudley <simon.dudley@consensys.net>
Signed-off-by: Chaminda Divitotawela <cdivitotawela@users.noreply.github.com>

* 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 <cdivitotawela@gmail.com>

---------

Signed-off-by: Chaminda Divitotawela <cdivitotawela@gmail.com>
Signed-off-by: Chaminda Divitotawela <cdivitotawela@users.noreply.github.com>
Co-authored-by: Simon Dudley <simon.dudley@consensys.net>
Signed-off-by: gconnect <agatevureglory@gmail.com>
Signed-off-by: gconnect <agatevureglory@gmail.com>
@gconnect gconnect force-pushed the add-network-support-for-ephemery-testnet branch from 4a45494 to ef55bed Compare August 26, 2024 12:48
Signed-off-by: Glory Agatevure <agatevureglory@gmail.com>
@gconnect
Copy link
Copy Markdown
Contributor Author

@macfarla I have made the requested changes.

@gconnect
Copy link
Copy Markdown
Contributor Author

gconnect commented Aug 28, 2024

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

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

Comment thread besu/src/main/java/org/hyperledger/besu/cli/config/NetworkName.java Outdated
Comment thread besu/src/main/java/org/hyperledger/besu/util/EphemeryGenesisFile.java Outdated
Comment thread besu/src/main/java/org/hyperledger/besu/cli/BesuCommand.java Outdated
Comment thread besu/src/main/java/org/hyperledger/besu/util/EphemeryGenesisFile.java Outdated
ephemeryGenesisFile =
new EphemeryGenesisFile(readGenesisConfigFile(), readGenesisConfigOptions());
ephemeryGenesisFile.updateGenesis();
}
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

gconnect commented Sep 3, 2024

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

@gconnect
Copy link
Copy Markdown
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.