Skip to content

Commit 6e29ddc

Browse files
committed
Add PhoenixZeroReserve feature bit
Add a feature bit for zero-reserve channel. It is used by phoenix wallets and different from the feature bit proposed in lightning/bolts#1140.
1 parent abe2cc9 commit 6e29ddc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

eclair-core/src/main/scala/fr/acinq/eclair/Features.scala

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,11 @@ object Features {
312312
val mandatory = 60
313313
}
314314

315+
case object PhoenixZeroReserve extends Feature with InitFeature with ChannelTypeFeature with PermanentChannelFeature {
316+
val rfcName = "phoenix_zero_reserve"
317+
val mandatory = 128
318+
}
319+
315320
/** This feature bit indicates that the node is a mobile wallet that can be woken up via push notifications. */
316321
case object WakeUpNotificationClient extends Feature with InitFeature {
317322
val rfcName = "wake_up_notification_client"
@@ -401,7 +406,8 @@ object Features {
401406
AsyncPaymentPrototype,
402407
SplicePrototype,
403408
OnTheFlyFunding,
404-
FundingFeeCredit
409+
FundingFeeCredit,
410+
PhoenixZeroReserve
405411
)
406412

407413
// Features may depend on other features, as specified in Bolt 9.

0 commit comments

Comments
 (0)