mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-26 20:30:59 +01:00
bitcoin_script: remember to push extra 0 for OP_CHECKMULTISIG.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
769d2fd722
commit
cbad9a1fa5
1 changed files with 2 additions and 0 deletions
|
@ -279,6 +279,8 @@ u8 *scriptsig_p2sh_2of2(const tal_t *ctx,
|
|||
u8 *script = tal_arr(ctx, u8, 0);
|
||||
u8 *redeemscript;
|
||||
|
||||
/* OP_CHECKMULTISIG has an out-by-one bug, which MBZ */
|
||||
add_number(&script, 0);
|
||||
add_push_sig(&script, sig1);
|
||||
add_push_sig(&script, sig2);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue