mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-04 06:44:24 +01:00
channel.psbt: make non-const
We update it in the next patch, which technically breaks this contract. So we shouldn't have the contract of const on this in the first place then.
This commit is contained in:
@@ -43,7 +43,9 @@ static void handle_signed_psbt(struct lightningd *ld,
|
||||
struct commit_rcvd *rcvd)
|
||||
{
|
||||
/* Now that we've got the signed PSBT, save it */
|
||||
rcvd->channel->psbt = tal_steal(rcvd->channel, psbt);
|
||||
rcvd->channel->psbt =
|
||||
tal_steal(rcvd->channel,
|
||||
cast_const(struct wally_psbt *, psbt));
|
||||
wallet_channel_save(ld->wallet, rcvd->channel);
|
||||
|
||||
channel_watch_funding(ld, rcvd->channel);
|
||||
|
||||
Reference in New Issue
Block a user