public boolean isBloomFilteringSupported ( ) { if ( clientVersion >= params . getProtocolVersionNum ( NetworkParameters . ProtocolVersion . BLOOM_FILTER ) && clientVersion < params . getProtocolVersionNum ( NetworkParameters . ProtocolVersion . BLOOM_FILTER_BIP111 ) ) return true ; if ( ( localServices & NODE_BLOOM ) == NODE_BLOOM ) return true ; return false ; }
Returns true if the peer supports bloom filtering according to BIP37 and BIP111 .