mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 00:54:20 +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
@@ -166,6 +166,12 @@ struct ext_key *hsm_init(struct lightningd *ld)
|
||||
fatal("--experimental-anchors needs HSM capable of signing anchors!");
|
||||
}
|
||||
|
||||
if (feature_offered(ld->our_features->bits[INIT_FEATURE],
|
||||
WIRE_HSMD_SIGN_SPLICE_TX)
|
||||
&& !hsm_capable(ld, WIRE_HSMD_SIGN_SPLICE_TX)) {
|
||||
fatal("--experimental-splicing needs HSM capable of signing splices!");
|
||||
}
|
||||
|
||||
/* This is equivalent to makesecret("bolt12-invoice-base") */
|
||||
msg = towire_hsmd_derive_secret(NULL, tal_dup_arr(tmpctx, u8,
|
||||
(const u8 *)INVOICE_PATH_BASE_STRING,
|
||||
|
||||
Reference in New Issue
Block a user