You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when we store feature flag bitfields in e.g. the Peer struct, we store them such that the bytes overall are in little-endian order, but each individual byte is big-endian.
I.e.: peer.their_features: [[feature bit 7, feature bit 6, ... feature bit 1, feature bit 0], [feature bit 15, feature bit 14, ... feature bit 8], [feature bit 18... feature bit 16]]
It'd be more intuitive if each individual byte were also little-endian.
Mostly filing this for myself as a potential future refactor.