Skip to content

Commit 7a5a2a9

Browse files
committed
Set HolderCommitmentPoint::current_point on read
When introducing HolderCommitmentPoint::current_point, the value was mistakenly not set when read except in the legacy case where the next point needed to be fetched. But in that case, it would have been read as None given it is a new field.
1 parent fa9cb2e commit 7a5a2a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13841,7 +13841,7 @@ where
1384113841
match (holder_commitment_point_next_opt, holder_commitment_point_pending_next_opt) {
1384213842
(Some(next_point), pending_next_point) => HolderCommitmentPoint {
1384313843
next_transaction_number: holder_commitment_next_transaction_number,
13844-
current_point: None,
13844+
current_point: holder_commitment_point_current_opt,
1384513845
next_point,
1384613846
pending_next_point,
1384713847
},

0 commit comments

Comments
 (0)