lnwallet: clear modified HTLCs within updateLog.removeHtlcs

This commit is contained in:
Olaoluwa Osuntokun 2018-05-25 18:38:44 -07:00
parent 56ebd6de8d
commit 1f1f22cfe8
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

@ -1165,6 +1165,9 @@ func (u *updateLog) removeHtlc(i uint64) {
u.Remove(entry)
delete(u.htlcIndex, i)
delete(u.modifiedHtlcs, i)
}
// htlcHasModification returns true if the HTLC identified by the passed index
// has a pending modification within the log.
func (u *updateLog) htlcHasModification(i uint64) bool {