mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
script: add OP_CHECKLOCKTIMEVERIFY.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
4
Makefile
4
Makefile
@@ -3,8 +3,8 @@
|
|||||||
# Needs to have oneof support: Ubuntu vivid's is too old :(
|
# Needs to have oneof support: Ubuntu vivid's is too old :(
|
||||||
PROTOCC:=protoc-c
|
PROTOCC:=protoc-c
|
||||||
|
|
||||||
# Alpha has checksequenceverify, segregated witness+input-amount-in-sig+confidentual-transactions, schnorr
|
# Alpha has checksequenceverify, segregated witness+input-amount-in-sig+confidentual-transactions, schnorr, checklocktimeverify
|
||||||
FEATURES := -DHAS_CSV=1 -DALPHA_TXSTYLE=1 -DUSE_SCHNORR=1
|
FEATURES := -DHAS_CSV=1 -DALPHA_TXSTYLE=1 -DUSE_SCHNORR=1 -DHAS_CLTV=1
|
||||||
# Bitcoin uses DER for signatures
|
# Bitcoin uses DER for signatures
|
||||||
#FEATURES := -DSCRIPTS_USE_DER
|
#FEATURES := -DSCRIPTS_USE_DER
|
||||||
|
|
||||||
|
|||||||
@@ -33,6 +33,14 @@
|
|||||||
/* OP_NOP, otherwise bitcoind complains */
|
/* OP_NOP, otherwise bitcoind complains */
|
||||||
#define OP_CHECKSEQUENCEVERIFY 0x61
|
#define OP_CHECKSEQUENCEVERIFY 0x61
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAS_CLTV
|
||||||
|
#define OP_CHECKLOCKTIMEVERIFY 0xB1
|
||||||
|
#else
|
||||||
|
/* OP_NOP, otherwise bitcoind complains */
|
||||||
|
#define OP_CHECKLOCKTIMEVERIFY 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);
|
||||||
|
|||||||
Reference in New Issue
Block a user