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
* Implement option-upfront-shutdown-script
* Do not activate option_upfront_shutdown_Script by defaut
Users will need to explicitly activate it.
* Send back a warning when we receive an invalid shutdown script
Copy file name to clipboardExpand all lines: eclair-core/src/main/scala/fr/acinq/eclair/channel/ChannelExceptions.scala
+1
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,7 @@ case class CannotCloseWithUnsignedOutgoingHtlcs (override val channelId: Byte
55
55
caseclassCannotCloseWithUnsignedOutgoingUpdateFee(overridevalchannelId:ByteVector32) extendsChannelException(channelId, "cannot close when there is an unsigned fee update")
56
56
caseclassChannelUnavailable (overridevalchannelId:ByteVector32) extendsChannelException(channelId, "channel is unavailable (offline or closing)")
57
57
caseclassInvalidFinalScript (overridevalchannelId:ByteVector32) extendsChannelException(channelId, "invalid final script")
caseclassFundingTxSpent (overridevalchannelId:ByteVector32, spendingTx: Transaction) extendsChannelException(channelId, s"funding tx has been spent by txid=${spendingTx.txid}")
60
61
caseclassHtlcsTimedoutDownstream (overridevalchannelId:ByteVector32, htlcs: Set[UpdateAddHtlc]) extendsChannelException(channelId, s"one or more htlcs timed out downstream: ids=${htlcs.take(10).map(_.id).mkString(",")}") // we only display the first 10 ids
@@ -84,6 +86,43 @@ case class Commitments(channelId: ByteVector32,
84
86
85
87
require(channelFeatures.paysDirectlyToWallet == localParams.walletStaticPaymentBasepoint.isDefined, s"localParams.walletStaticPaymentBasepoint must be defined only for commitments that pay directly to our wallet (channel features: $channelFeatures")
86
88
89
+
/**
90
+
*
91
+
* @paramscriptPubKey optional local script pubkey provided in CMD_CLOSE
92
+
* @return the actual local shutdown script that we should use
// to check whether shutdown_any_segwit is active we check features in local and remote parameters, which are negotiated each time we connect to our peer.
// to check whether shutdown_any_segwit is active we check features in local and remote parameters, which are negotiated each time we connect to our peer.
0 commit comments