• F
    p2p: fix disconnect at capacity · 914e57e4
    Felix Lange 提交于
    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
handshake_test.go 4.2 KB