Skip to content

Commit b9308a4

Browse files
committed
more detailed log messages
1 parent a25bc6a commit b9308a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

eclair-core/src/main/scala/fr/acinq/eclair/channel/Channel.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2314,7 +2314,7 @@ class Channel(val nodeParams: NodeParams, val wallet: EclairWallet, remoteNodeId
23142314
case UnhandledExceptionStrategy.LocalClose =>
23152315
spendLocalCurrent(dd) sending error
23162316
case UnhandledExceptionStrategy.Stop =>
2317-
log.error("stopping the node (unhandled exception")
2317+
log.error("unhandled exception: standard procedure would be to force-close the channel, but eclair has been configured to halt instead.")
23182318
System.exit(1)
23192319
stop(FSM.Shutdown)
23202320
}
@@ -2562,10 +2562,10 @@ class Channel(val nodeParams: NodeParams, val wallet: EclairWallet, remoteNodeId
25622562
private def handleOutdatedCommitment(channelReestablish: ChannelReestablish, d: HasCommitments) = {
25632563
nodeParams.outdatedCommitmentStrategy match {
25642564
case OutdatedCommitmentStrategy.Stop if ManagementFactory.getRuntimeMXBean.getUptime.millis < 10.minutes =>
2565-
log.error("we just restarted and may have an outdated commitment! stopping the node")
2565+
log.error("we just restarted and may have an outdated commitment: standard procedure would be to request our peer to force-close, but eclair has been configured to halt instead. Please ensure your database is up-to-date and restart eclair.")
25662566
System.exit(1)
25672567
stop(FSM.Shutdown)
2568-
case OutdatedCommitmentStrategy.RemoteClose =>
2568+
case _ =>
25692569
val exc = PleasePublishYourCommitment(d.channelId)
25702570
val error = Error(d.channelId, exc.getMessage)
25712571
goto(WAIT_FOR_REMOTE_PUBLISH_FUTURE_COMMITMENT) using DATA_WAIT_FOR_REMOTE_PUBLISH_FUTURE_COMMITMENT(d.commitments, channelReestablish) storing() sending error

0 commit comments

Comments
 (0)