This PR optimizes the iteration over m_banned in src/banman.cpp by using const references (const CSubNet& and const CBanEntry&) instead of copying the objects by value on every loop iteration.
This improves both performance and code quality by preventing unnecessary object copies during banlist evaluations (IsBanned, SweepBanned).