mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-08 00:24:28 +01:00
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>
This commit is contained in:
committed by
Christian Decker
parent
db22d2366e
commit
86a46cb1d4
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user