File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ enum HTLCState {
136
136
/// anyway).
137
137
LocalRemoved ,
138
138
/// Removed by us, sent a new commitment_signed and got a revoke_and_ack. Just waiting on an
139
- /// updated local commitment transaction.
139
+ /// updated local commitment transaction. Implies local_removed_fulfilled.
140
140
LocalRemovedAwaitingCommitment ,
141
141
}
142
142
@@ -663,7 +663,7 @@ impl Channel {
663
663
} else {
664
664
match htlc. state {
665
665
HTLCState :: AwaitingRemoteRevokeToRemove |HTLCState :: AwaitingRemovedRemoteRevoke => {
666
- if generated_by_local && htlc. fail_reason . is_none ( ) {
666
+ if htlc. fail_reason . is_none ( ) {
667
667
value_to_self_msat_offset -= htlc. amount_msat as i64 ;
668
668
}
669
669
} ,
@@ -678,6 +678,7 @@ impl Channel {
678
678
}
679
679
} ,
680
680
HTLCState :: LocalRemovedAwaitingCommitment => {
681
+ assert ! ( htlc. local_removed_fulfilled) ;
681
682
value_to_self_msat_offset += htlc. amount_msat as i64 ;
682
683
} ,
683
684
_ => { } ,
You can’t perform that action at this time.
0 commit comments