]> git.bitcoin.ninja Git - rust-lightning/commit
Remove wire::MessageType in favor of u16
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 18 Aug 2021 15:41:01 +0000 (10:41 -0500)
committerTibo-lg <thibaut@cryptogarage.co.jp>
Wed, 25 Aug 2021 04:22:09 +0000 (13:22 +0900)
commiteb46f477f4b2459731e78c23423415cde278be09
treed8c61b90f2595d1eb16a1b017c5da18e136b3a00
parent2e5e40e0b21fbac862478dce4d81cf037f37060d
Remove wire::MessageType in favor of u16

With custom messages, wire::Type was introduced. wire::MessageType is a
bit redundant, so use u16 instead and move is_even to wire::Message.
lightning/src/ln/peer_handler.rs
lightning/src/ln/wire.rs