Browse Source

channeld: push TCP output on commitment and revocation messages.

These are the really time-critical ones.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
committed by Christian Decker
parent
commit
86a46cb1d4
  1. 4
      channeld/channel.c

4
channeld/channel.c

@ -1033,7 +1033,7 @@ static void send_commit(struct peer *peer)
msg = towire_commitment_signed(NULL, &peer->channel_id,
&peer->next_commit_sigs->commit_sig,
peer->next_commit_sigs->htlc_sigs);
sync_crypto_write(&peer->cs, PEER_FD, take(msg));
sync_crypto_write_no_delay(&peer->cs, PEER_FD, take(msg));
peer->next_commit_sigs = tal_free(peer->next_commit_sigs);
maybe_send_shutdown(peer);
@ -1097,7 +1097,7 @@ static void send_revocation(struct peer *peer)
start_commit_timer(peer);
}
sync_crypto_write(&peer->cs, PEER_FD, take(msg));
sync_crypto_write_no_delay(&peer->cs, PEER_FD, take(msg));
}
static u8 *got_commitsig_msg(const tal_t *ctx,

Loading…
Cancel
Save