def METHOD_NAME(self):
    self.log.info('Tests with node in normal mode with block-relay-only connections')
    self.restart_node(0, ["-noblocksonly"])  # disables blocks only mode
    assert_equal(self.nodes[0].getnetworkinfo()['localrelay'], True)
    # Ensure we disconnect if a block-relay-only connection sends us a transaction
    self.nodes[0].add_outbound_p2p_connection(P2PInterface(), p2p_idx=0, connection_type="block-relay-only")
    assert_equal(self.nodes[0].getpeerinfo()[0]['relaytxes'], False)
    _, txid, _, tx_hex = self.check_p2p_tx_violation()
    self.log.info("Tests with node in normal mode with block-relay-only connection, sending an inv")
    conn = self.nodes[0].add_outbound_p2p_connection(P2PInterface(), p2p_idx=0, connection_type="block-relay-only")
    assert_equal(self.nodes[0].getpeerinfo()[0]['relaytxes'], False)
    self.check_p2p_inv_violation(conn)
    self.log.info("Check that txs from RPC are not sent to blockrelay connection")
    conn = self.nodes[0].add_outbound_p2p_connection(P2PTxInvStore(), p2p_idx=1, connection_type="block-relay-only")
    self.nodes[0].sendrawtransaction(tx_hex)
    # Bump time forward to ensure m_next_inv_send_time timer pops
    self.nodes[0].setmocktime(int(time.time()) + 60)
    conn.sync_with_ping()
    assert int(txid, 16) not in conn.get_invs()