mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 07:17:40 +01:00
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.
This commit is contained in:
parent
12e2a81e1d
commit
c1db30d5be
1 changed files with 1 additions and 1 deletions
|
@ -272,7 +272,7 @@ impl<T: sealed::UpfrontShutdownScript> Features<T> {
|
|||
}
|
||||
#[cfg(test)]
|
||||
pub(crate) fn unset_upfront_shutdown_script(&mut self) {
|
||||
self.flags[0] ^= 1 << 5;
|
||||
self.flags[0] &= !(1 << 5);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue