]> git.bitcoin.ninja Git - rust-lightning/commit
Fix Feature endianness by swapping bytes on read/write.
authorMatt Corallo <git@bluematt.me>
Mon, 13 Jan 2020 18:50:29 +0000 (13:50 -0500)
committerMatt Corallo <git@bluematt.me>
Mon, 13 Jan 2020 18:50:29 +0000 (13:50 -0500)
commit96d3de5cde06c6764213575702ff4a64c884a87e
treeb8ff78ac02a06f40b29162baff93a076a37c169b
parent0ad8fde0d6350d2ab3133c515bc09d39d242fa1a
Fix Feature endianness by swapping bytes on read/write.

The spec is a bit mum on feature endianness, so I suppose it falls
under the "everything is big endian unless otherwise specified"
clause, but we were treating it as little.
lightning/src/ln/msgs.rs