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

op-reth Base Mainnet sync very slowly #413

Open
0xStrawberlin opened this issue Feb 15, 2025 · 2 comments
Open

op-reth Base Mainnet sync very slowly #413

0xStrawberlin opened this issue Feb 15, 2025 · 2 comments

Comments

@0xStrawberlin
Copy link

I try to run a full base mainnet node with op-reth and op-node. But it syncs very slowly. It took about 15 hours to run and only reached 400,000 blocks. Can anyone provide the full node snapshot ? or Can I sync from latest block instead of genius block (Block 0). Thank!

Here are my executed scripts:

./bin/op-node \
    --network="base-mainnet" \
    --l1=wss://eth.merkle.io \
    --l2=http://localhost:9551 \
    --l2.jwt-secret=/Volumes/Tiplus/reth_data/base_reth_jwt/jwt.hex \
    --rpc.addr=0.0.0.0 \
    --rpc.port=7000 \
    --l1.beacon=https://ethereum-beacon-api.publicnode.com
    --l1.trustrpc
    --syncmode=execution-layer
    --l2.enginekind=reth
    --override.holocene 2736445601


op-reth node \
    --full \
    --chain base \
    --rollup.sequencer-http https://mainnet-sequencer.base.org \
    --http \
    --ws \
    --authrpc.port 9551 \
    --authrpc.jwtsecret /Volumes/Tiplus/reth_data/base_reth_jwt/jwt.hex \
    --datadir  /Volumes/Tiplus/reth_data/base_reth_data
@mohsinriaz17
Copy link

Hi @0xStrawberlin
the snapshots are available here
https://docs.base.org/chain/run-a-base-node#snapshots

@mohsinriaz17
Copy link

mohsinriaz17 commented Feb 26, 2025

i am using a geth node, and i have added the full node snapshot but after that, i was about 20k blocks behind so i waited couple of hours. but i realised it is still syncing very slow.

Average sync speed: 1.7750 blocks per second

Starting block sync speed check...
----------------------------------
Fetching block number... Attempt 1 of 5
System Time: 22:43:10 | Block Number: 22404205
Waiting 10 seconds for the next fetch...
Fetching block number... Attempt 2 of 5
System Time: 22:43:20 | Block Number: 22404219
Waiting 10 seconds for the next fetch...
Fetching block number... Attempt 3 of 5
System Time: 22:43:30 | Block Number: 22404227
Waiting 10 seconds for the next fetch...
Fetching block number... Attempt 4 of 5
System Time: 22:43:40 | Block Number: 22404250
Waiting 10 seconds for the next fetch...
Fetching block number... Attempt 5 of 5
System Time: 22:43:50 | Block Number: 22404276
----------------------------------
Blocks synced in fetch 1: 14 (Time elapsed: 10 sec)
Blocks synced in fetch 2: 8 (Time elapsed: 10 sec)
Blocks synced in fetch 3: 23 (Time elapsed: 10 sec)
Blocks synced in fetch 4: 26 (Time elapsed: 10 sec)
----------------------------------
Latest fetched block: 22404276
Current latest block: 22419790
Blocks behind: 15514
Total blocks synced in tests: 71
Average sync speed: 1.7750 blocks per second
Estimated time to sync to 22419790: 8740.28 seconds
New blocks added during sync: 4370
Final estimated time including new blocks: 11202.25 seconds

what can i do to debug the speed?

i am on ubuntu 24.04, 16 core xeon 6th gen CPU with 64 GB ram and 2TB nvme disk
the download speed during snapshot was on average 40MB/s so i do not think my network connection is a problem

i am using chainstack as my L1 becon node which have a throughput of 25 api calls per sec
i am trying to sync sepolia testnet

Thanks

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

No branches or pull requests

2 participants