mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-01 01:32:34 +01:00
bitcoin_script: use OP_NOP dummy for now, as bitcoind rejects OP_NOP3
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
3c7e11fd65
commit
3a4d8cd282
1 changed files with 6 additions and 1 deletions
|
@ -25,8 +25,13 @@
|
||||||
#define OP_CHECKSIG 0xAC
|
#define OP_CHECKSIG 0xAC
|
||||||
#define OP_CHECKMULTISIG 0xAE
|
#define OP_CHECKMULTISIG 0xAE
|
||||||
#define OP_HASH160 0xA9
|
#define OP_HASH160 0xA9
|
||||||
#define OP_CHECKSEQUENCEVERIFY 0xB2
|
|
||||||
|
|
||||||
|
#ifdef HAS_CSV
|
||||||
|
#define OP_CHECKSEQUENCEVERIFY 0xB2
|
||||||
|
#else
|
||||||
|
/* OP_NOP, otherwise bitcoind complains */
|
||||||
|
#define OP_CHECKSEQUENCEVERIFY 0x61
|
||||||
|
#endif
|
||||||
static void add(u8 **scriptp, const void *mem, size_t len)
|
static void add(u8 **scriptp, const void *mem, size_t len)
|
||||||
{
|
{
|
||||||
size_t oldlen = tal_count(*scriptp);
|
size_t oldlen = tal_count(*scriptp);
|
||||||
|
|
Loading…
Add table
Reference in a new issue