You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: eclair-core/src/main/scala/fr/acinq/eclair/db/DbEventHandler.scala
+9-4
Original file line number
Diff line number
Diff line change
@@ -83,12 +83,17 @@ class DbEventHandler(nodeParams: NodeParams) extends Actor with ActorLogging {
83
83
casee: NetworkFeePaid=> auditDb.add(e)
84
84
85
85
casee: ChannelErrorOccurred=>
86
+
// first pattern matching level is to ignore some errors, second level is to separate between different kind of errors
86
87
e.error match {
87
-
caseLocalError(_) if e.isFatal =>ChannelMetrics.ChannelErrors.withTag(ChannelTags.Origin, ChannelTags.Origins.Local).withTag(ChannelTags.Fatal, value =true).increment()
88
-
caseLocalError(_) if!e.isFatal =>ChannelMetrics.ChannelErrors.withTag(ChannelTags.Origin, ChannelTags.Origins.Local).withTag(ChannelTags.Fatal, value =false).increment()
caseLocalError(_: CannotAffordFees) => () // will be thrown at each new block if our balance is too low to update the commitment fee
89
+
case _ =>
90
+
e.error match {
91
+
caseLocalError(_) if e.isFatal =>ChannelMetrics.ChannelErrors.withTag(ChannelTags.Origin, ChannelTags.Origins.Local).withTag(ChannelTags.Fatal, value =true).increment()
92
+
caseLocalError(_) if!e.isFatal =>ChannelMetrics.ChannelErrors.withTag(ChannelTags.Origin, ChannelTags.Origins.Local).withTag(ChannelTags.Fatal, value =false).increment()
0 commit comments