0
Besides the 520 bytes consensus rule limit, is there a limit on how many of each OP_IF, OP_ELSE and OP_ENDIF can be used in a single script?
For example, a company that has 3 people in its purchase department would like to make a fast purchase if all people in the department agree and slow it down in case not everybody agrees, but not make it impossible in the final:
Alice, Bob and Carol store funds in a P2SH address. Initially, all 3/3 of signatures are required initially.
After some time, (OP_CHECKLOCKTIMEVERIFY) just two of them can spend (2/3 signatures required).
After more time, (first OP_CHECKLOCKTIMEVERIFY + more time), any one can spend (1/3 signatures required).
How would a script like this look like?
I don't think there's any rule on how many you can have. They do need to be matched, though. – Nick ODell – 2017-07-22T22:03:10.243
1there is limit of 201 total operations in script as far as I remember. – amaclin – 2017-07-22T22:38:35.177