@@ -34,8 +34,8 @@ object TestConstants {
34
34
35
35
object Alice {
36
36
private val entropy = Hex .decode(" 0101010101010101010101010101010101010101010101010101010101010101" )
37
- val mnemonics = MnemonicCode .toMnemonics(entropy)
38
- val seed = MnemonicCode .toSeed(mnemonics, " " ).toByteVector32()
37
+ private val mnemonics = MnemonicCode .toMnemonics(entropy)
38
+ private val seed = MnemonicCode .toSeed(mnemonics, " " ).toByteVector32()
39
39
40
40
val keyManager = LocalKeyManager (seed, Block .RegtestGenesisBlock .hash)
41
41
val walletParams = WalletParams (NodeUri (randomKey().publicKey(), " alice.com" , 9735 ), trampolineFees, InvoiceDefaultRoutingFees (1_000 .msat, 100 , CltvExpiryDelta (144 )))
@@ -53,13 +53,12 @@ object TestConstants {
53
53
Feature .Wumbo to FeatureSupport .Optional ,
54
54
Feature .StaticRemoteKey to FeatureSupport .Mandatory ,
55
55
Feature .AnchorOutputs to FeatureSupport .Mandatory ,
56
+ Feature .ChannelType to FeatureSupport .Mandatory ,
56
57
Feature .TrampolinePayment to FeatureSupport .Optional ,
57
- Feature .ZeroReserveChannels to FeatureSupport .Optional ,
58
- Feature .ZeroConfChannels to FeatureSupport .Optional ,
59
- Feature .WakeUpNotificationClient to FeatureSupport .Optional ,
60
- Feature .PayToOpenClient to FeatureSupport .Optional ,
61
- Feature .TrustedSwapInClient to FeatureSupport .Optional ,
62
- Feature .ChannelBackupClient to FeatureSupport .Optional ,
58
+ Feature .WakeUpNotificationProvider to FeatureSupport .Optional ,
59
+ Feature .PayToOpenProvider to FeatureSupport .Optional ,
60
+ Feature .TrustedSwapInProvider to FeatureSupport .Optional ,
61
+ Feature .ChannelBackupProvider to FeatureSupport .Optional ,
63
62
),
64
63
dustLimit = 1_100 .sat,
65
64
maxRemoteDustLimit = 1_500 .sat,
@@ -100,7 +99,7 @@ object TestConstants {
100
99
enableTrampolinePayment = true
101
100
)
102
101
103
- val closingPubKeyInfo = keyManager.closingPubkeyScript(PublicKey .Generator )
102
+ private val closingPubKeyInfo = keyManager.closingPubkeyScript(PublicKey .Generator )
104
103
val channelParams: LocalParams = PeerChannels .makeChannelParams(
105
104
nodeParams,
106
105
defaultFinalScriptPubkey = ByteVector (closingPubKeyInfo.second),
@@ -112,7 +111,7 @@ object TestConstants {
112
111
object Bob {
113
112
private val entropy = Hex .decode(" 0202020202020202020202020202020202020202020202020202020202020202" )
114
113
val mnemonics = MnemonicCode .toMnemonics(entropy)
115
- val seed = MnemonicCode .toSeed(mnemonics, " " ).toByteVector32()
114
+ private val seed = MnemonicCode .toSeed(mnemonics, " " ).toByteVector32()
116
115
val keyManager = LocalKeyManager (seed, Block .RegtestGenesisBlock .hash)
117
116
val walletParams = WalletParams (NodeUri (randomKey().publicKey(), " bob.com" , 9735 ), trampolineFees, InvoiceDefaultRoutingFees (1_000 .msat, 100 , CltvExpiryDelta (144 )))
118
117
val nodeParams = NodeParams (
@@ -129,9 +128,8 @@ object TestConstants {
129
128
Feature .Wumbo to FeatureSupport .Optional ,
130
129
Feature .StaticRemoteKey to FeatureSupport .Mandatory ,
131
130
Feature .AnchorOutputs to FeatureSupport .Mandatory ,
131
+ Feature .ChannelType to FeatureSupport .Mandatory ,
132
132
Feature .TrampolinePayment to FeatureSupport .Optional ,
133
- Feature .ZeroReserveChannels to FeatureSupport .Optional ,
134
- Feature .ZeroConfChannels to FeatureSupport .Optional ,
135
133
Feature .WakeUpNotificationClient to FeatureSupport .Optional ,
136
134
Feature .PayToOpenClient to FeatureSupport .Optional ,
137
135
Feature .TrustedSwapInClient to FeatureSupport .Optional ,
@@ -176,7 +174,7 @@ object TestConstants {
176
174
enableTrampolinePayment = true
177
175
)
178
176
179
- val closingPubKeyInfo = keyManager.closingPubkeyScript(PublicKey .Generator )
177
+ private val closingPubKeyInfo = keyManager.closingPubkeyScript(PublicKey .Generator )
180
178
val channelParams: LocalParams = PeerChannels .makeChannelParams(
181
179
nodeParams,
182
180
defaultFinalScriptPubkey = ByteVector (closingPubKeyInfo.second),
0 commit comments