We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02a92d8 commit d030b8fCopy full SHA for d030b8f
src/primitives/relative_locktime.rs
@@ -52,6 +52,9 @@ impl RelLockTime {
52
convert::TryFrom::try_from(Sequence::from_height(height))
53
}
54
55
+ /// Takes a 16-bit number of blocks and produces a relative locktime from it.
56
+ pub fn from_height_unchecked(height: u16) -> Self { RelLockTime(Sequence::from_height(height)) }
57
+
58
/// Takes a 16-bit number of 512-second time intervals and produces a relative locktime from it.
59
pub fn from_512_second_intervals(time: u16) -> Self {
60
RelLockTime(Sequence::from_512_second_intervals(time))
0 commit comments