• Felix Lange's avatar
    p2p: fix disconnect at capacity · 914e57e4
    Felix Lange authored
    With the introduction of static/trusted nodes, the peer count
    can go above MaxPeers. Update the capacity check to handle this.
    While here, decouple the trusted nodes check from the handshake
    by passing a function instead.
    914e57e4
Name
Last commit
Last update
..
discover Loading commit data...
nat Loading commit data...
handshake.go Loading commit data...
handshake_test.go Loading commit data...
message.go Loading commit data...
message_test.go Loading commit data...
peer.go Loading commit data...
peer_error.go Loading commit data...
peer_test.go Loading commit data...
protocol.go Loading commit data...
rlpx.go Loading commit data...
rlpx_test.go Loading commit data...
server.go Loading commit data...
server_test.go Loading commit data...
testlog_test.go Loading commit data...