allada / bsc-archive-snapshot

Free public Binance Smart Chain (BSC) Archive Snapshot
Apache License 2.0
112 stars 25 forks source link

BSC Erigon #12

Closed ingvarch closed 2 years ago

ingvarch commented 2 years ago

Cloud you say what repo do you use to run erigon bsc node?

allada commented 2 years ago

https://github.com/binance-chain/bsc-erigon

Make sure you are on the bsc branch.

ingvarch commented 2 years ago

Thank you. I tried, but it doesn’t work for me. I’m on bsc branch, but it doesn’t get blocks. Always show me - got 0 blocks…

Could you share arguments which you are using ?

allada commented 2 years ago

I had to put in my ip address manually. Try:

./erigon --datadir ./data  --chain bsc --nat extip:YOUR_PUBLIC_IP_ADDRESS
ingvarch commented 2 years ago

Sounds interesting! Thank you. Going to try it and closing this issue

allada commented 2 years ago

FYI, I am having some issues with some asserts happening. Others have also reported this issue here: https://github.com/binance-chain/bsc-erigon/issues/17

I am instead trying to use ledgerwatch's checkout here: https://github.com/ledgerwatch/erigon/commit/4819ee1545c874a87165d3334e15094133324abc

The commands should be the same.

This is the second time I've hit this assert in 4 days and both happened around the same spot.

ingvarch commented 2 years ago

btw,

I still use ./erigon --datadir ./data --chain bsc and after 2-3 hours it started to write the blocks. It works last 8-9 hours and I'm getting following logs:

INFO[01-21|11:33:07.304] [3/16 Bodies] Wrote block bodies         block_num=13543265 delivery/sec="12.73 MiB" wasted/sec="0.00 B" alloc="3.95 GiB" sys="15.26 GiB"
INFO[01-21|11:33:37.304] [3/16 Bodies] Wrote block bodies         block_num=13550991 delivery/sec="10.65 MiB" wasted/sec="0.00 B" alloc="1.96 GiB" sys="15.26 GiB"
INFO[01-21|11:33:50.880] [p2p] GoodPeers                          eth66=1
INFO[01-21|11:34:07.304] [3/16 Bodies] Wrote block bodies         block_num=13552081 delivery/sec="14.57 MiB" wasted/sec="0.00 B" alloc="3.57 GiB" sys="15.26 GiB"
INFO[01-21|11:34:46.284] [3/16 Bodies] Wrote block bodies         block_num=13554185 delivery/sec="16.87 MiB" wasted/sec="0.00 B" alloc="4.09 GiB" sys="15.26 GiB"
INFO[01-21|11:35:07.305] [3/16 Bodies] Wrote block bodies         block_num=13558249 delivery/sec="14.09 MiB" wasted/sec="0.00 B" alloc="3.61 GiB" sys="15.26 GiB"
INFO[01-21|11:35:37.318] [3/16 Bodies] Wrote block bodies         block_num=13583080 delivery/sec="5.12 MiB" wasted/sec="0.00 B" alloc="4.31 GiB" sys="15.26 GiB"
INFO[01-21|11:35:50.880] [p2p] GoodPeers                          eth66=1
INFO[01-21|11:36:07.305] [3/16 Bodies] Wrote block bodies         block_num=13584890 delivery/sec="15.67 MiB" wasted/sec="0.00 B" alloc="2.14 GiB" sys="15.26 GiB"
INFO[01-21|11:36:37.306] [3/16 Bodies] Wrote block bodies         block_num=13586064 delivery/sec="7.99 MiB" wasted/sec="0.00 B" alloc="2.14 GiB" sys="15.26 GiB"
INFO[01-21|11:37:07.307] [3/16 Bodies] Wrote block bodies         block_num=13588028 delivery/sec="17.58 MiB" wasted/sec="0.00 B" alloc="1.98 GiB" sys="15.26 GiB"
INFO[01-21|11:37:37.312] [3/16 Bodies] Wrote block bodies         block_num=13589279 delivery/sec="18.97 MiB" wasted/sec="0.00 B" alloc="2.82 GiB" sys="15.26 GiB"