mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 23:54:22 +01:00
lightningd: fail htlcs we offer if peer unresponsive after deadline.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -176,7 +176,7 @@ void peer_fail_permanent(struct peer *peer, const u8 *msg TAKES)
|
||||
return;
|
||||
}
|
||||
|
||||
static void peer_fail_permanent_str(struct peer *peer, const char *str TAKES)
|
||||
void peer_fail_permanent_str(struct peer *peer, const char *str TAKES)
|
||||
{
|
||||
/* Don't use tal_strdup, since we need tal_len */
|
||||
u8 *msg = tal_dup_arr(peer, u8, (const u8 *)str, strlen(str) + 1, 0);
|
||||
|
||||
Reference in New Issue
Block a user