]> git.bitcoin.ninja Git - rust-lightning/commit
Unset upfront_shutdown_script using bit clearing
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 10 Apr 2020 18:36:47 +0000 (11:36 -0700)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 28 Apr 2020 06:29:23 +0000 (23:29 -0700)
commitc1db30d5be88e312e10efb47e26aade95413a01b
treec7d512f33dcf7d957144611dc823f85459b6fdf7
parent12e2a81e1daf635578e1cfdd7de55324ed04bd48
Unset upfront_shutdown_script using bit clearing

The test_upfront_shutdown_script functional test clears this feature
flag. However, the method used to clear the flag is implemented by bit
toggling. Thus, if the flag is not set the method would actually set it.
Implement the method using bit clearing instead.
lightning/src/ln/features.rs