liquidity-ad: fill in acceptance response

Asks HSMD for signed lease termsheet, fills in the details to the
accept_channel2 TLV
This commit is contained in:
niftynei
2021-06-08 16:56:07 -05:00
committed by neil saitug
parent 9ad40f2544
commit 334ec0084b
2 changed files with 61 additions and 2 deletions

View File

@@ -2893,7 +2893,8 @@ static void start_fresh_dualopend(struct peer *peer,
hsmfd = hsm_get_client_fd(peer->ld, &peer->id, channel->unsaved_dbid,
HSM_CAP_COMMITMENT_POINT
| HSM_CAP_SIGN_REMOTE_TX);
| HSM_CAP_SIGN_REMOTE_TX
| HSM_CAP_SIGN_WILL_FUND_OFFER);
channel->owner = new_channel_subd(peer->ld,
"lightning_dualopend",
@@ -2959,7 +2960,8 @@ void peer_restart_dualopend(struct peer *peer,
}
hsmfd = hsm_get_client_fd(peer->ld, &peer->id, channel->dbid,
HSM_CAP_COMMITMENT_POINT
| HSM_CAP_SIGN_REMOTE_TX);
| HSM_CAP_SIGN_REMOTE_TX
| HSM_CAP_SIGN_WILL_FUND_OFFER);
channel_set_owner(channel,
new_channel_subd(peer->ld, "lightning_dualopend",