unicornultrafoundation / go-u2u

Implementation of U2U Network in Golang
https://u2u.xyz
GNU Lesser General Public License v3.0
4 stars 3 forks source link

Wrong block data size received, and then P2P connections drop to a non-working loop a bit later in full sync #99

Open khoau2u opened 1 month ago

khoau2u commented 1 month ago

Configuration: Bare metal Linux server with 8C16T CPU + 64GiB memory in VN, 500mbps uplink, u2u executable built from master branch

Logs:


...13925173 fetched A-OK...

INFO [06-19|00:52:25.773] New block index=13925174 id=60977:4767:6c9801 gas_used=2,342,884 txs=2/0 age=2m17.563s t=9.368ms

DEBUG[06-19|00:58:00.747] Reinjecting stale transactions count=0 DEBUG[06-19|00:58:00.774] Persisted trie from memory database nodes=0 size=0.00B time=20.38659ms gcnodes=33 gcsize=13.12KiB gctime="859.752µs" livenodes=725 livesize=252.44KiB DEBUG[06-19|00:58:00.786] Loaded snapshot journal diskroot=dd65fe..ec210b diffs=unmatched DEBUG[06-19|00:58:00.786] New event id=60978:4783:406054 parents=2 by=6 frame=369 txs=0 age=49.674s t=61.923ms TRACE[06-19|00:58:00.786] Event is already known to all peers hash=60978:4783:406054 DEBUG[06-19|00:58:00.949] Fetching batch of events id=ba2493fd5e72d318 conn=dyndial count=250 DEBUG[06-19|00:58:00.949] Fetching batch of events id=ba2493fd5e72d318 conn=dyndial count=96 DEBUG[06-19|00:58:00.949] Fetching batch of events id=ba2493fd5e72d318 conn=dyndial count=250 TRACE[06-19|00:58:01.003] FINDNODE failed id=ba2493fd5e72d318 failcount=117 dropped=false err="RPC timeout" TRACE[06-19|00:58:01.003] FINDNODE failed id=d5112ff2b7b54e60 failcount=113 dropped=false err="RPC timeout" TRACE[06-19|00:58:01.003] >> FINDNODE/v5 id=ba2493fd5e72d318 addr=18.143.208.170:5050 TRACE[06-19|00:58:01.003] >> FINDNODE/v5 id=d5112ff2b7b54e60 addr=3.1.11.147:5050 TRACE[06-19|00:58:01.397] >> FINDNODE/v4 id=ba2493fd5e72d318 addr=18.143.208.170:5050 err=nil TRACE[06-19|00:58:01.397] >> FINDNODE/v4 id=d5112ff2b7b54e60 addr=3.1.11.147:5050 err=nil TRACE[06-19|00:58:01.397] >> FINDNODE/v4 id=ba2493fd5e72d318 addr=18.143.208.170:5050 err=nil TRACE[06-19|00:58:01.397] >> FINDNODE/v4 id=d5112ff2b7b54e60 addr=3.1.11.147:5050 err=nil TRACE[06-19|00:58:01.704] FINDNODE failed id=d5112ff2b7b54e60 failcount=114 dropped=false err="RPC timeout" TRACE[06-19|00:58:01.898] Discarding dial candidate id=d5112ff2b7b54e60 ip=3.1.11.147 reason="already connected"

TRACE[06-19|00:58:03.401] >> PING/v4 id=d5112ff2b7b54e60 addr=3.1.11.147:5050 err=nil

DEBUG[06-19|00:58:04.066] Removed dead node b=14 id=d5112ff2b7b54e60 ip=3.1.11.147 checks=0

INFO [06-19|00:59:24.934] Looking for peers peercount=0 tried=2 static=0 ...



> Noticed that `gas_used=2342884` for block `13925174` which is obviously wrong, some invalid data received, waiting for me to capture it
   --> Then node go into unrecoverable unsynced state due to being maybe-banned by all the peers
I will upload full logs and the config later.
khoau2u commented 1 month ago

Attached log file: stdout.log.gz

khoau2u commented 2 weeks ago

Something to do with my router's firewall and TLS X25519 Kyber