• Wladimir J. van der Laan's avatar
    src/netbase.h: Fix endian in CNetAddr serialization · aac32053
    Wladimir J. van der Laan authored
    We've chosen to htons/ntohs explicitly on reading and writing
    (I do not know why). But as READWRITE already does an endian swap
    on big endian, this means the port number gets switched around,
    which was what we were trying to avoid in the first place. So
    to make this compatible, serialize it as FLATDATA.
    aac32053
netbase.h 7.53 KB