]> git.bitcoin.ninja Git - rust-lightning/commit
Expand testing of unknown feature bits
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 28 Apr 2020 05:12:53 +0000 (22:12 -0700)
committerJeffrey Czyz <jkczyz@gmail.com>
Wed, 29 Apr 2020 18:11:51 +0000 (11:11 -0700)
commitb1c6499e1c50fc41c443883dde8e8248106089c3
tree25012c9ed5fa2ad7a42b831ffd6ed8918a3b6311
parent4bd2c974a2c96a2ce98a4055a72b2b3c687e78bc
Expand testing of unknown feature bits

Include tests for requires_unknown_bits and supports_unknown_bits when
an unknown even bit, odd bit, or neither is set. Refactor bit clearing
such that tests and production code share the same code path. Fix a
potential spec incompatibility (currently only exposed in testing code)
where trailing zero bytes are not removed after a bit is cleared.
lightning/src/ln/features.rs
lightning/src/ln/router.rs