Skip to content

Commit b76c0c1

Browse files
ddustinrustyrussell
authored andcommitted
splice: Test fix for test crash splice
Fix a typo where the commit sig message ordering was not handled correctly for the first element. We need to use msg_batch[0] to get the first post-sorted result instead of the original msg. Changelog-None
1 parent b74e156 commit b76c0c1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

channeld/channeld.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2369,11 +2369,11 @@ static struct commitsig_info *handle_peer_commit_sig_batch(struct peer *peer,
23692369
status_debug("Sorting the msg_batch of tal_count %d, batch_size: %d", (int)tal_count(msg_batch), (int)batch_size);
23702370
asort(msg_batch, tal_count(msg_batch), commit_cmp, peer);
23712371

2372-
return handle_peer_commit_sig(peer, msg, commit_index, remote_funding,
2373-
changed_htlcs, splice_amnt,
2374-
remote_splice_amnt, local_index,
2375-
local_per_commit, allow_empty_commit,
2376-
msg_batch);
2372+
return handle_peer_commit_sig(peer, msg_batch[0], commit_index,
2373+
remote_funding, changed_htlcs,
2374+
splice_amnt, remote_splice_amnt,
2375+
local_index, local_per_commit,
2376+
allow_empty_commit, msg_batch);
23772377
}
23782378

23792379
/* Pops the penalty base for the given commitnum from our internal list. There

0 commit comments

Comments
 (0)