invoiceregistry: enforce stricter check on duplicate ntfn avoidance
This commit is contained in:
parent
db4a09d3b5
commit
1189e703da
@ -144,13 +144,13 @@ func (i *invoiceRegistry) invoiceEventNotifier() {
|
|||||||
// If we've already sent this settle event to
|
// If we've already sent this settle event to
|
||||||
// the client, then we can skip this.
|
// the client, then we can skip this.
|
||||||
case event.isSettle &&
|
case event.isSettle &&
|
||||||
client.settleIndex == invoice.SettleIndex:
|
client.settleIndex >= invoice.SettleIndex:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
// Similarly, if we've already sent this add to
|
// Similarly, if we've already sent this add to
|
||||||
// the client then we can skip this one.
|
// the client then we can skip this one.
|
||||||
case !event.isSettle &&
|
case !event.isSettle &&
|
||||||
client.addIndex == invoice.AddIndex:
|
client.addIndex >= invoice.AddIndex:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
// These two states should never happen, but we
|
// These two states should never happen, but we
|
||||||
|
Loading…
Reference in New Issue
Block a user