Merge pull request #1169 from stevenroose/filteradd

server: Fix bug disconnecting peer on filteradd
This commit is contained in:
Olaoluwa Osuntokun 2018-08-09 17:06:19 -07:00 committed by GitHub
commit f899737d7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1130,7 +1130,7 @@ func (sp *serverPeer) OnFilterAdd(_ *peer.Peer, msg *wire.MsgFilterAdd) {
return
}
if sp.filter.IsLoaded() {
if !sp.filter.IsLoaded() {
peerLog.Debugf("%s sent a filteradd request with no filter "+
"loaded -- disconnecting", sp)
sp.Disconnect()