Skip to content

Conversation

@macfarla
Copy link
Contributor

@macfarla macfarla commented Nov 14, 2025

PR description

Add Linea mainnet to list of known networks.
So you can run besu --network=linea

genesis from https://github.com/Consensys/linea-monorepo/tree/main/docs/getting-started/linea-mainnet/besu
linea docs https://docs.linea.build/get-started/how-to/run-a-node/

#                                                                                                  #
# Besu version 25.11-develop-7854af8                                                               #
#                                                                                                  #
# Configuration:                                                                                   #
# Network: Linea                                                                                   #
# Network Id: 59144                                                                                #
# Data storage: Bonsai                                                                             #
# Sync mode: Snap                                                                                  #
# Sync min peers: 5                                                                                #
# Engine APIs: ENGINE,ETH                                                                          #
# Engine port: 8551                                                                                #
# Engine JWT: /Users/sallymacfarlane/workspace/b2/build/install/besu/jwt.hex                       #
# Using LAYERED transaction pool implementation                                                    #
# Using STACKED worldstate update mode                                                             #
# Opcode optimizations enabled                                                                     #
# Parallel transaction processing enabled                                                          #
# Limit trie logs enabled: retention: 512; prune window: 5000                                      #
# Target Gas Limit: 60M                                                                            #
#                                                                                                  #
# Host:                                                                                            #

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:

  • spotless: ./gradlew spotlessApply
  • unit tests: ./gradlew build
  • acceptance tests: ./gradlew acceptanceTest
  • integration tests: ./gradlew integrationTest
  • reference tests: ./gradlew ethereum:referenceTests:referenceTests
  • hive tests: Engine or other RPCs modified?

Signed-off-by: Sally MacFarlane <[email protected]>
Copilot AI review requested due to automatic review settings November 14, 2025 03:33
Signed-off-by: Sally MacFarlane <[email protected]>
@macfarla macfarla added doc-change-required Indicates an issue or PR that requires doc to be updated linea helps L2s using besu labels Nov 14, 2025
* Linea network name <a href="https://docs.linea.build/get-started/how-to/run-a-node/besu">Linea
* Besu developer info</a>
*/
LINEA("/linea.json", BigInteger.valueOf(59144), true, NativeRequirement.MAINNET),
Copy link
Contributor

Choose a reason for hiding this comment

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

Might also want Linea Sepolia as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added linea_sepolia

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Contributor

@fab-10 fab-10 left a comment

Choose a reason for hiding this comment

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

LGTM, have you tried to sync?

@macfarla
Copy link
Contributor Author

Note this does not include bootnode config so you still need to configure that separately eg https://github.com/Consensys/linea-monorepo/blob/main/docs/getting-started/linea-mainnet/execution-layer-static-nodes.json

@macfarla
Copy link
Contributor Author

macfarla commented Nov 17, 2025

LGTM, have you tried to sync?

yes, in progress

  • the middle node is dev-elc-bu-nb-mainnet-fdifabio-linea for comparison
  • top one dev-elc-bu-nb-hoodi-sally-linea-network-name-2 is configured manually with the genesis file + chain id + maru
  • bottom one dev-elc-bu-nb-linea-sally-linea-network-name is configured with network=linea + maru, plus I added bootnodes to config file
Screenshot 2025-11-17 at 3 23 36 pm

@macfarla
Copy link
Contributor Author

@fab-10 I think seeing it's actively syncing is sufficient - don't need to see it complete sync?
Screenshot 2025-11-18 at 10 33 11 am

@fab-10
Copy link
Contributor

fab-10 commented Nov 18, 2025

@macfarla should not take too long to synchronize, are you doing a SNAP sync?

@macfarla
Copy link
Contributor Author

@macfarla should not take too long to synchronize, are you doing a SNAP sync?

it's full sync, bonsai, with maru. dev-elc-bu-nb-linea-sally-linea-network-name

data-storage-format="BONSAI"

# JWT
# authentication is enabled by default when engine-jwt-disabled=false
engine-jwt-disabled=false
engine-jwt-secret="/etc/jwt-secret.hex"
engine-rpc-enabled=true
engine-rpc-port=8551
engine-host-allowlist=["*"]

sync-min-peers=1

network="linea"

min-gas-price=1000
sync-mode="FULL"
host-allowlist=["*"]

Signed-off-by: Sally MacFarlane <[email protected]>
@jframe
Copy link
Contributor

jframe commented Nov 19, 2025

Don't think we need to see it finish syncing. Though would be nice. Snap sync shouldn't take that long though.

@fab-10
Copy link
Contributor

fab-10 commented Nov 19, 2025

I approve, but it will be nice if you can run a SNAP sync and ensure that the node follows the chain

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

Labels

doc-change-required Indicates an issue or PR that requires doc to be updated linea helps L2s using besu

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants