subdaemons: pass back and forth the htlc points.

Openingd sets it to the same as the payment point for the remote side.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2017-11-15 16:51:39 +10:30
committed by Christian Decker
parent 654c2f4eb8
commit fc05779f78
7 changed files with 16 additions and 10 deletions

View File

@@ -2023,6 +2023,7 @@ static void init_channel(struct peer *peer)
&funding_pubkey[REMOTE],
&points[REMOTE].revocation,
&points[REMOTE].payment,
&points[REMOTE].htlc,
&points[REMOTE].delayed_payment,
&peer->remote_per_commit,
&peer->old_remote_per_commit,
@@ -2057,8 +2058,6 @@ static void init_channel(struct peer *peer)
&funding_signed))
master_badmsg(WIRE_CHANNEL_INIT, msg);
points[REMOTE].htlc = points[REMOTE].payment;
status_trace("init %s: remote_per_commit = %s, old_remote_per_commit = %s"
" next_idx_local = %"PRIu64
" next_idx_remote = %"PRIu64

View File

@@ -16,9 +16,10 @@ channel_init,,feerate_per_kw,u32
channel_init,,first_commit_sig,secp256k1_ecdsa_signature
channel_init,,crypto_state,struct crypto_state
channel_init,,remote_fundingkey,struct pubkey
channel_init,,revocation_basepoint,struct pubkey
channel_init,,payment_basepoint,struct pubkey
channel_init,,delayed_payment_basepoint,struct pubkey
channel_init,,remote_revocation_basepoint,struct pubkey
channel_init,,remote_payment_basepoint,struct pubkey
channel_init,,remote_htlc_basepoint,struct pubkey
channel_init,,remote_delayed_payment_basepoint,struct pubkey
channel_init,,remote_per_commit,struct pubkey
channel_init,,old_remote_per_commit,struct pubkey
channel_init,,funder,enum side
1 # Received and sent funding_locked
16 channel_init,,remote_fundingkey,struct pubkey
17 channel_init,,revocation_basepoint,struct pubkey channel_init,,remote_revocation_basepoint,struct pubkey
18 channel_init,,payment_basepoint,struct pubkey channel_init,,remote_payment_basepoint,struct pubkey
19 channel_init,,delayed_payment_basepoint,struct pubkey channel_init,,remote_htlc_basepoint,struct pubkey
20 channel_init,,remote_per_commit,struct pubkey channel_init,,remote_delayed_payment_basepoint,struct pubkey
21 channel_init,,old_remote_per_commit,struct pubkey channel_init,,remote_per_commit,struct pubkey
22 channel_init,,old_remote_per_commit,struct pubkey
23 channel_init,,funder,enum side
24 channel_init,,fee_base,u32
25 channel_init,,fee_proportional,u32