We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5147c6f commit 9420012Copy full SHA for 9420012
src/primitives/relative_locktime.rs
@@ -65,7 +65,7 @@ impl RelLockTime {
65
impl convert::TryFrom<Sequence> for RelLockTime {
66
type Error = RelLockTimeError;
67
fn try_from(seq: Sequence) -> Result<Self, RelLockTimeError> {
68
- if seq.is_relative_lock_time() {
+ if seq.is_relative_lock_time() && seq != Sequence::ZERO {
69
Ok(RelLockTime(seq))
70
} else {
71
Err(RelLockTimeError { value: seq.to_consensus_u32() })
0 commit comments