mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 19:50:36 +00:00
340b9811b0
Improve p2p error handling to propagate errors from the origin up the call chain the Server peer removal code using a new PeerError type containing a DiscReason and a more detailed description. The origin can be tracked down using PeerErrorCode (code) and DiscReason (reason) which looks like this in the log: > [TRACE] [08-28|16:33:40.205] Removing p2p peer peercount=0 url=enode://d399f4b...@1.2.3.4:30303 duration=6.901ms err="PeerError(code=remote disconnect reason, reason=too many peers, err=<nil>, message=Peer.run got a remote DiscReason)" |
||
---|---|---|
.. | ||
decode_tail_test.go | ||
decode_test.go | ||
decode.go | ||
doc.go | ||
encode_test.go | ||
encode.go | ||
encoder_example_test.go | ||
iterator_test.go | ||
iterator.go | ||
raw_test.go | ||
raw.go | ||
typecache.go |