mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
lnwallet: clear modified HTLCs within updateLog.removeHtlcs
This commit is contained in:
parent
56ebd6de8d
commit
1f1f22cfe8
1 changed files with 3 additions and 0 deletions
|
@ -1165,6 +1165,9 @@ func (u *updateLog) removeHtlc(i uint64) {
|
||||||
u.Remove(entry)
|
u.Remove(entry)
|
||||||
delete(u.htlcIndex, i)
|
delete(u.htlcIndex, i)
|
||||||
|
|
||||||
|
delete(u.modifiedHtlcs, i)
|
||||||
|
}
|
||||||
|
|
||||||
// htlcHasModification returns true if the HTLC identified by the passed index
|
// htlcHasModification returns true if the HTLC identified by the passed index
|
||||||
// has a pending modification within the log.
|
// has a pending modification within the log.
|
||||||
func (u *updateLog) htlcHasModification(i uint64) bool {
|
func (u *updateLog) htlcHasModification(i uint64) bool {
|
||||||
|
|
Loading…
Add table
Reference in a new issue