Made the debug line for invalid peer versions dynamic
Properly exchange peer capabilities between peers