It seems odd to derive msg_pong_corrupt
from msg_pong
, but then overwrite the serialize method, when one can just directly use msg_generic
to pass the raw bytes to send over the wire.
Fix that by using msg_generic
. This also serves as a regression test against the fix in commit 33480573cbd8d03aefbde100e51f827a2f7de7f7.
(Can be tested by reverting that commit to observe a failure)