-
Notifications
You must be signed in to change notification settings - Fork 55
Description
Rationale
For some common issue encountered, such as the follows:
No block header/body write.- Body download speed is slow
Database is too large for current system
Solution
Please try to specify these flags in the command line for starting node:
--p2p.protocol=68(bsc remove 66&67 after v1.4.x)--db.pagesize=16k
Also, for some cases that now work especially in reboot scenario, it'll help to unwind some blocks:
- Stop erigon node
- run
make integration - run
./build/bin/integration stage_exec --datadir ./data/ --chain bsc --unwind 10 - Start erigon node
FAQs
Q1: mdbx_env_open: MDBX_TOO_LARGE? refer: #38
Q2: Any suggested start up command line?
Here is our command line to start on BSC Mainnet, you can use on your need.
Note: we have plenty SSD disk storage to support archive node, which is 14TB, so we set
--db.pagesize=16kfor fast DB performance. You may configure it according to your device setting.
./erigon --bodies.cache=214748364800 --batchSize=4096M --txpool.disable --metrics.addr=0.0.0.0 --log.console.verbosity=eror --log.dir.verbosity=dbug --http --ws --http.api=web3,net,eth,debug,trace,txpool,admin --http.addr=0.0.0.0 --db.pagesize=16k --datadir ${workspace}/data --private.api.addr=localhost:9090 --chain=bsc --metrics
Q3: OOM Crash?
Try not specify the body cache and batch size: --bodies.cache=214748364800 --batchSize=4096M.
These 2 flags will bring heavy to RAM caches. Similar issue: #39
Q4: For The Lagging Sync Issue, pls refer: #51
Q5: Log with "DumpBlocks: DumpHeaders: header missed in db:"
It won't affect sync. Two way to fix it.
- Remove datadir/downloader and datadir/snapshots/prohibit_new_downloads.lock
- integration stage_headers —reset
Q6: Wrong totalDifficult in eth_getBlockByNumber.
Stop erigon and ./integration stage_headers --reset --chain=bsc --datadir=yourdata will fix.