Run a Linea Node
The Linea network only produces blocks if there is currently at least 1 pending transaction. If you see no incoming blocks to your node, that does not mean that the node is not syncing.
If you don't see any incoming blocks, check and make sure that you have at least one peer from the bootnodes below; otherwise, you might not be connected to the Linea network.
Interested in running a Linea node yourself? Of course you are.β
If you're unfamiliar with how public blockchain networks share the responsibility of keeping common resources secure, check out this explainer from MetaMask.
Running a sequencer node is currently not possible. The Ethereum client being used in this walkthrough (Geth) will soon be updated, including breaking changes. Please get in touch to make sure we keep you posted if you decide to run a node. ** You can run a Dockerized version as long as you keep the same parameters.**
How to run a Linea node
- Mainnet
- Testnet
Prerequisitesβ
Set up the required and recommended hardware and all the utilities. You can find the recommendations from Geth here
Step 1β
Download v1.11.6 Geth (latest untested) and install using the instructions provided here
Step 2β
Download genesis.json
Step 3β
Define a volume of at least 100GB
, more if you want to future-proof your node, and mount the Geth datadir
to geth-linea-data
Step 4β
Bootstrap the node using the following command
geth --datadir ./geth-linea-data init ./genesis.json
Step 5β
Start the node with the following command
geth \
--datadir $HOME/geth-linea-data \
--networkid 59144 \
--rpc.allow-unprotected-txs \
--txpool.accountqueue 50000 \
--txpool.globalqueue 50000 \
--txpool.globalslots 50000 \
--txpool.pricelimit 1000000 \
--txpool.pricebump 1 \
--txpool.nolocals \
--http --http.addr '127.0.0.1' --http.port 8545 --http.corsdomain '*' --http.api 'web3,eth,txpool,net' --http.vhosts='*' \
--ws --ws.addr '127.0.0.1' --ws.port 8546 --ws.origins '*' --ws.api 'web3,eth,txpool,net' \
--bootnodes "enode://ca2f06aa93728e2883ff02b0c2076329e475fe667a48035b4f77711ea41a73cf6cb2ff232804c49538ad77794185d83295b57ddd2be79eefc50a9dd5c48bbb2e@3.23.106.165:30303,enode://eef91d714494a1ceb6e06e5ce96fe5d7d25d3701b2d2e68c042b33d5fa0e4bf134116e06947b3f40b0f22db08f104504dd2e5c790d8bcbb6bfb1b7f4f85313ec@3.133.179.213:30303,enode://cfd472842582c422c7c98b0f2d04c6bf21d1afb2c767f72b032f7ea89c03a7abdaf4855b7cb2dc9ae7509836064ba8d817572cf7421ba106ac87857836fa1d1b@3.145.12.13:30303" \
--syncmode full \
--metrics \
--verbosity 3
If you're having trouble with your node, hop over to the Support page and open a ticket with our agents.
Prerequisitesβ
Set up the required and recommended hardware and all the utilities. You can find the recommendations from Geth here
Step 1β
Download v1.11.6 Geth (latest untested) and install using the instructions provided here
Step 2β
Download l2-genesis-linea-goerli.json
Step 3β
Define a volume of 400GB
and mount the Geth datadir
to geth-uat-data
Step 4β
Bootstrap the node using the following command
geth --datadir ./geth-uat-data init ./l2-genesis-linea-goerli.json
Step 5β
Start the node with the following command
geth \
--datadir $HOME/geth-uat-data \
--networkid 59140 \
--rpc.allow-unprotected-txs \
--txpool.accountqueue 50000 \
--txpool.globalqueue 50000 \
--txpool.globalslots 50000 \
--txpool.pricelimit 1000000 \
--txpool.pricebump 1 \
--txpool.nolocals \
--http --http.addr '0.0.0.0' --http.port 8545 --http.corsdomain '*' --http.api 'web3,eth,txpool,net' --http.vhosts='*' \
--ws --ws.addr '0.0.0.0' --ws.port 8546 --ws.origins '*' --ws.api 'web3,eth,txpool,net' \
--bootnodes "enode://c7d29d1bbb768e73c6bd320608276dc2341670822ed1292456a7b8375de35b5348e3b6bac63783a53d697378b25c5658681683f7621e31b37c605993c5ee13bd@18.189.141.200:30303,enode://14ba040dd8c5b1ea607fabf98c3c7c398658f897c502d0ca5202dce8907e83be953995ce5c3f72def2af710c072fe38de4e9347a299370fc82d6d17819967c93@3.144.118.88:30303" \
--syncmode full \
--metrics \
--verbosity 3