witness_beacon: do not look up invoice preimages

This commit isolates preimages of forwarded htlcs from invoice
preimages. The reason to do this is to prevent the incoming contest
resolver from settling exit hop htlcs for which the invoice isn't marked
as settled.
This commit is contained in:
Joost Jager committed 2019-05-15 14:41:58 +02:00
1 parent 99e42ddde6
commit 1a80a1e540
3 files changed
+48 -28

No files matched your search

-1
View File
@@ -374,7 +374,6 @@ func newServer(listenAddrs []net.Addr, chanDB *channeldb.DB, cc *chainControl,
}
s.witnessBeacon = &preimageBeacon{
invoices: s.invoices,
wCache: chanDB.NewWitnessCache(),
subscribers: make(map[uint64]*preimageSubscriber),
}