• 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
server_test.go 13.5 KB