Skip to content

Commit

Permalink
wip: handle the vls crash
Browse files Browse the repository at this point in the history
Signed-off-by: Vincenzo Palazzo <[email protected]>
  • Loading branch information
vincenzopalazzo committed Oct 27, 2023
1 parent 34692ec commit ab07d5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions channeld/channeld.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* limits, unlikely as that is.
*/
#include "config.h"
#include <assert.h>
#include <bitcoin/script.h>
#include <ccan/asort/asort.h>
#include <ccan/cast/cast.h>
Expand Down Expand Up @@ -2189,6 +2190,7 @@ static struct commitsig *handle_peer_commit_sig(struct peer *peer,
}

/* Validate the counterparty's signatures, returns prior per_commitment_secret. */
status_debug("next_index: %lu", peer->next_index[LOCAL]);
htlcs = collect_htlcs(NULL, htlc_map);
msg2 = towire_hsmd_validate_commitment_tx(NULL,
txs[0],
Expand All @@ -2206,6 +2208,8 @@ static struct commitsig *handle_peer_commit_sig(struct peer *peer,
"Reading validate_commitment_tx reply: %s",
tal_hex(tmpctx, msg2));

status_debug("next_point: %s", type_to_string(tmpctx, struct pubkey, &next_point));
assert(old_secret->data);
result = tal(tmpctx, struct commitsig);
result->tx = clone_bitcoin_tx(result, txs[0]);
result->commit_signature = commit_sig;
Expand Down

0 comments on commit ab07d5e

Please sign in to comment.