<p>I've created the following script on testnet:</p>

<pre><code>OP_IF 
    2 &lt;pubkey1&gt; &lt;pubkey2&gt; &lt;pubkey3&gt; 3 
    OP_CHECKMULTISIG 
OP_ELSE 
    1 OP_CHECKSEQUENCEVERIFY 
    OP_DROP 
    &lt;pubkey1&gt; OP_CHECKSIG 
OP_ENDIF
</code></pre>

<p>I am currently able to unlock the funds when I satisfy the 2 of 3 multisig condition.</p>

<p>However, when I attempt to unlock the funds using the else condition, I get the following error: 64: non-mandatory-script-verify-flag (Locktime requirement not satisfied)</p>

<p>This confuses me, because I thought I was setting the lock time to a block height of 1, which should have already passed.</p>

<p>I have also tried using OP_CHECKLOCKTIMEVERIFY as well.</p>

<p>Any help on this would be greatly appreciated! Thanks so much!</p>

CC BY-SA 4.0
2018-09-21T13:51:23.317Z
What is the `nSequence` of the transaction input?
JBaczuk
CC BY-SA 4.0
2018-10-21T18:09:06.493Z
warning ! if OP_CHECKSEQUENCEVERIFY is successful, anyone, with any private key, can spend from the above address. you should use the combination of "OP_DUP OP_HASH160 <Public Key Hash> OP_EQUALVERIFY OP_CHECKSIG"
youssef
<script><locktime><checklocktimeverify><checksequenceverify>
Locktime requirement not satisfied when locktime set to 1 in p2sh
Zargoon
# Locktime requirement not satisfied when locktime set to 1 in p2sh

(Asked by: username_0 on 2018-05-07)

I've created the following script on testnet:
OP_IF 
    2    3 
    OP_CHECKMULTISIG 
OP_ELSE 
    1 OP_CHECKSEQUENCEVERIFY 
    OP_DROP 
     OP_CHECKSIG 
OP_ENDIF

I am currently able to unlock the funds when I satisfy the 2 of 3 multisig condition.
However, when I attempt to unlock the funds using the else condition, I get the following error: 64: non-mandatory-script-verify-flag (Locktime requirement not satisfied)
This confuses me, because I thought I was setting the lock time to a block height of 1, which should have already passed.
I have also tried using OP_CHECKLOCKTIMEVERIFY as well.
Any help on this would be greatly appreciated! Thanks so much!

**Tags:** script, locktime, checklocktimeverify, checksequenceverify

> **Comments:**
> **username_1**: What is the `nSequence` of the transaction input?  
> **username_2**: warning ! if OP_CHECKSEQUENCEVERIFY is successful, anyone, with any private key, can spend from the above address. you should use the combination of "OP_DUP OP_HASH160 <Public Key Hash> OP_EQUALVERIFY OP_CHECKSIG"  

---

## 0 answers

