Branch: refs/heads/master
  Commit: 8965d888931238fd17b3ea9ae70216f1c3ce6e6a
  Author: Dave Collins <>
  Date:   2016-10-16 (Sun, 16 Oct 2016)

  Changed paths:
    M peer/peer.go
    M server.go

  Log Message:
  peer: Strictly enforce bloom filter service bit.

This makes the enforcement of the bloom filter service bit much more
strict.  In particular, it does the following:

- Moves the enforcement of the bloom filter service bit out of the peer
  package and into the server so the server can ban as necessary
- Disconnect peers that send filter commands when the server is
  configured to disable them regardless of the protocol version
- Bans peers that are a high enough protocol version that they are
  supposed to observe the service bit is disabled, but ignore it and
  send filter commands regardless.

As an added bonus, this fixes the old logic which had a bug in that it
was examining the *remote* peer's supported services in order to choose
whether or not to disconnect instead of the *local* server's supported

Reply via email to