Revert "Send/receive cltv_expiry_delta in open/accept channel."

This reverts commit 18e3f9820f.
This commit is contained in:
Rusty Russell
2017-10-11 15:01:57 +10:30
committed by Christian Decker
parent cfac9a1f73
commit f32e0b35ad
8 changed files with 25 additions and 58 deletions

View File

@@ -2272,8 +2272,7 @@ static bool opening_funder_finished(struct subd *opening, const u8 *resp,
&fc->peer->minimum_depth,
&channel_info->remote_fundingkey,
&funding_txid,
&channel_info->feerate_per_kw,
&channel_info->their_cltv_expiry_delta)) {
&channel_info->feerate_per_kw)) {
peer_internal_error(fc->peer, "bad shutdown_complete: %s",
tal_hex(resp, resp));
return false;
@@ -2394,8 +2393,7 @@ static bool opening_fundee_finished(struct subd *opening,
&peer->push_msat,
&peer->channel_flags,
&channel_info->feerate_per_kw,
&funding_signed,
&channel_info->their_cltv_expiry_delta)) {
&funding_signed)) {
log_broken(peer->log, "bad OPENING_FUNDEE_REPLY %s",
tal_hex(reply, reply));
return false;
@@ -2536,8 +2534,7 @@ void peer_fundee_open(struct peer *peer, const u8 *from_peer,
&peer->our_config,
max_to_self_delay,
min_effective_htlc_capacity_msat,
cs, peer->seed,
ld->config.min_htlc_expiry);
cs, peer->seed);
subd_send_msg(peer->owner, take(msg));
/* FIXME: Expose the min_feerate_per_kw and max_feerate_per_kw in the config */
@@ -2611,8 +2608,7 @@ static bool gossip_peer_released(struct subd *gossip,
&fc->peer->our_config,
max_to_self_delay,
min_effective_htlc_capacity_msat,
&cs, fc->peer->seed,
ld->config.min_htlc_expiry);
&cs, fc->peer->seed);
subd_send_msg(opening, take(msg));