We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7569c6e commit 52b7004Copy full SHA for 52b7004
connectd/multiplex.c
@@ -481,9 +481,13 @@ static bool have_empty_encrypted_queue(const struct peer *peer)
481
return membuf_num_elems(&peer->encrypted_peer_out) == 0;
482
}
483
484
+/* Funny story: we discovered an LND bug, where they hung up if we sent
485
+ * "no reply" ping messages. This was fixed in (the upcoming) v21, which
486
+ * Laolu pointed out also supports onion messages. Hence we use that
487
+ * to detect if we should pad packets. */
488
static bool use_uniform_writes(const struct peer *peer)
489
{
- return peer->daemon->dev_uniform_padding;
490
+ return feature_offered(peer->their_features, OPT_ONION_MESSAGES);
491
492
493
/* (Continue) writing the encrypted_peer_out array */
0 commit comments