Skip to content

Commit c28907b

Browse files
committed
Add force-close notification
1 parent 4ca8ea0 commit c28907b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/ErrorHandlers.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ trait ErrorHandlers extends CommonHandlers {
205205
val finalScriptPubKey = getOrGenerateFinalScriptPubKey(d)
206206
val commitment = d.commitments.latest
207207
log.error(s"force-closing with fundingIndex=${commitment.fundingTxIndex}")
208+
context.system.eventStream.publish(NotifyNodeOperator(NotificationsLogger.Error, s"force-closing channel ${d.channelId} with fundingIndex=${commitment.fundingTxIndex}"))
208209
val commitTx = commitment.fullySignedLocalCommitTx(keyManager).tx
209210
val localCommitPublished = Closing.LocalClose.claimCommitTxOutputs(keyManager, commitment, commitTx, nodeParams.currentBitcoinCoreFeerates, nodeParams.onChainFeeConf, finalScriptPubKey)
210211
val nextData = d match {

0 commit comments

Comments
 (0)