mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
channeld: Code to implement splicing
Update the lightningd <-> channeld interface with lots of new commands to needed to facilitate spicing. Implement the channeld splicing protocol leveraging the interactivetx protocol. Implement lightningd’s channel_control to support channeld in its splicing efforts. Changelog-Added: Added the features to enable splicing & resizing of active channels.
This commit is contained in:
committed by
Rusty Russell
parent
ebd0a3fd69
commit
4628e3ace8
@@ -503,6 +503,18 @@ struct command_result *param_u64(struct command *cmd, const char *name,
|
||||
"should be an unsigned 64 bit integer");
|
||||
}
|
||||
|
||||
struct command_result *param_s64(struct command *cmd, const char *name,
|
||||
const char *buffer, const jsmntok_t *tok,
|
||||
int64_t **num)
|
||||
{
|
||||
*num = tal(cmd, int64_t);
|
||||
if (json_to_s64(buffer, tok, *num))
|
||||
return NULL;
|
||||
|
||||
return command_fail_badparam(cmd, name, buffer, tok,
|
||||
"should be an sign 64 bit integer");
|
||||
}
|
||||
|
||||
struct command_result *param_msat(struct command *cmd, const char *name,
|
||||
const char *buffer, const jsmntok_t *tok,
|
||||
struct amount_msat **msat)
|
||||
|
||||
Reference in New Issue
Block a user