We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45a56a6 commit 9e00fb3Copy full SHA for 9e00fb3
src/descriptors/mod.rs
@@ -180,7 +180,13 @@ impl LianaDescriptor {
180
181
/// Get an ordered list of timelocks of the recovery paths.
182
pub fn timelock_values(&self) -> Vec<u16> {
183
- self.policy().recovery_paths.keys().copied().collect()
+ let timelocks: Vec<u16> = self.policy().recovery_paths.keys().copied().collect();
184
+ // Assert that the resulting vector is not empty
185
+ assert!(
186
+ !timelocks.is_empty(),
187
+ "The timelock_values vector should never be empty"
188
+ );
189
+ timelocks
190
}
191
192
/// Get the maximum size in WU of a satisfaction for this descriptor.
0 commit comments