private void updateVersionMessageRelayTxesBeforeFilter(VersionMessage ver) {
        // We will provide the remote node with a bloom filter (ie they shouldn't relay yet)
        // if chain == null || !chain.shouldVerifyTransactions() and a wallet is added and bloom filters are enabled
        // Note that the default here means that no tx invs will be received if no wallet is ever added
        lock.lock();
        try {
            boolean spvMode = chain != null && !chain.shouldVerifyTransactions();
            boolean willSendFilter = spvMode && peerFilterProviders.size() > 0 && vBloomFilteringEnabled;
            ver.relayTxesBeforeFilter = !willSendFilter;
        } finally {
            lock.unlock();
        }
    }
private void updateVersionMessageRelayTxesBeforeFilter ( VersionMessage ver ) { lock . lock ( ) ; try { boolean spvMode = chain != null && ! chain . shouldVerifyTransactions ( ) ; boolean willSendFilter = spvMode && peerFilterProviders . size ( ) > 0 && vBloomFilteringEnabled ; ver . relayTxesBeforeFilter = ! willSendFilter ; } finally { lock . unlock ( ) ; } }
Updates the relayTxesBeforeFilter flag of ver