mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
3ccb6d6e7a
The main change which affects us is that 2016 blocks to forget a channel is a fixed number in the spec; we make this clear by renaming the (developer-only) max_funding_unconfirmed to dev_max_funding_unconfirmed and making it compile DEVELOPER only. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
23 lines
750 B
C
23 lines
750 B
C
#ifndef LIGHTNING_COMMON_SHUTDOWN_SCRIPTPUBKEY_H
|
|
#define LIGHTNING_COMMON_SHUTDOWN_SCRIPTPUBKEY_H
|
|
#include "config.h"
|
|
#include <ccan/short_types/short_types.h>
|
|
|
|
/* BOLT #2:
|
|
*
|
|
* 1. `OP_DUP` `OP_HASH160` `20` 20-bytes `OP_EQUALVERIFY` `OP_CHECKSIG`
|
|
* (pay to pubkey hash), OR
|
|
* 2. `OP_HASH160` `20` 20-bytes `OP_EQUAL` (pay to script hash), OR
|
|
* 3. `OP_0` `20` 20-bytes (version 0 pay to witness pubkey hash), OR
|
|
* 4. `OP_0` `32` 32-bytes (version 0 pay to witness script hash)
|
|
*
|
|
* A receiving node:
|
|
*...
|
|
* - if the `scriptpubkey` is not in one of the above forms:
|
|
* - SHOULD fail the connection.
|
|
*/
|
|
bool valid_shutdown_scriptpubkey(const u8 *scriptpubkey,
|
|
bool anysegwit);
|
|
|
|
#endif /* LIGHTNING_COMMON_SHUTDOWN_SCRIPTPUBKEY_H */
|