net: Fix sent reject messages for blocks and transactions #7179
To be clear, this solves the following issue:
Normal reject message
Reject message from 0.11.99+
Reason seems empty, and part of the reason message ends up in the "hash". This is due to the reject code being sent as multiple bytes instead of one, misaligning the message.
Edit: trying to think of a test. Hopefully it could fit somewhere in the Python P2P test framework, without creating a new script.