split active vs. inactive peers in the main loop