@@ -20,26 +20,65 @@ protected void finalize() throws Throwable {
2020 }
2121
2222 /**
23- * Amount (in millionths of a satoshi) the channel will charge per transferred satoshi.
23+ * Amount (in millionths of a satoshi) charged per satoshi for payments forwarded outbound
24+ * over the channel.
2425 * This may be allowed to change at runtime in a later update, however doing so must result in
2526 * update messages sent to notify all nodes of our updated relay fee.
2627 *
2728 * Default value: 0.
2829 */
29- public int get_fee_proportional_millionths () {
30- int ret = bindings .ChannelConfig_get_fee_proportional_millionths (this .ptr );
30+ public int get_forwarding_fee_proportional_millionths () {
31+ int ret = bindings .ChannelConfig_get_forwarding_fee_proportional_millionths (this .ptr );
3132 return ret ;
3233 }
3334
3435 /**
35- * Amount (in millionths of a satoshi) the channel will charge per transferred satoshi.
36+ * Amount (in millionths of a satoshi) charged per satoshi for payments forwarded outbound
37+ * over the channel.
3638 * This may be allowed to change at runtime in a later update, however doing so must result in
3739 * update messages sent to notify all nodes of our updated relay fee.
3840 *
3941 * Default value: 0.
4042 */
41- public void set_fee_proportional_millionths (int val ) {
42- bindings .ChannelConfig_set_fee_proportional_millionths (this .ptr , val );
43+ public void set_forwarding_fee_proportional_millionths (int val ) {
44+ bindings .ChannelConfig_set_forwarding_fee_proportional_millionths (this .ptr , val );
45+ }
46+
47+ /**
48+ * Amount (in milli-satoshi) charged for payments forwarded outbound over the channel, in
49+ * excess of [`forwarding_fee_proportional_millionths`].
50+ * This may be allowed to change at runtime in a later update, however doing so must result in
51+ * update messages sent to notify all nodes of our updated relay fee.
52+ *
53+ * The default value of a single satoshi roughly matches the market rate on many routing nodes
54+ * as of July 2021. Adjusting it upwards or downwards may change whether nodes route through
55+ * this node.
56+ *
57+ * Default value: 1000.
58+ *
59+ * [`forwarding_fee_proportional_millionths`]: ChannelConfig::forwarding_fee_proportional_millionths
60+ */
61+ public int get_forwarding_fee_base_msat () {
62+ int ret = bindings .ChannelConfig_get_forwarding_fee_base_msat (this .ptr );
63+ return ret ;
64+ }
65+
66+ /**
67+ * Amount (in milli-satoshi) charged for payments forwarded outbound over the channel, in
68+ * excess of [`forwarding_fee_proportional_millionths`].
69+ * This may be allowed to change at runtime in a later update, however doing so must result in
70+ * update messages sent to notify all nodes of our updated relay fee.
71+ *
72+ * The default value of a single satoshi roughly matches the market rate on many routing nodes
73+ * as of July 2021. Adjusting it upwards or downwards may change whether nodes route through
74+ * this node.
75+ *
76+ * Default value: 1000.
77+ *
78+ * [`forwarding_fee_proportional_millionths`]: ChannelConfig::forwarding_fee_proportional_millionths
79+ */
80+ public void set_forwarding_fee_base_msat (int val ) {
81+ bindings .ChannelConfig_set_forwarding_fee_base_msat (this .ptr , val );
4382 }
4483
4584 /**
@@ -100,7 +139,7 @@ public void set_cltv_expiry_delta(short val) {
100139 * This should only be set to true for nodes which expect to be online reliably.
101140 *
102141 * As the node which funds a channel picks this value this will only apply for new outbound
103- * channels unless ChannelHandshakeLimits::force_announced_channel_preferences is set.
142+ * channels unless [` ChannelHandshakeLimits::force_announced_channel_preference`] is set.
104143 *
105144 * This cannot be changed after the initial channel handshake.
106145 *
@@ -118,7 +157,7 @@ public boolean get_announced_channel() {
118157 * This should only be set to true for nodes which expect to be online reliably.
119158 *
120159 * As the node which funds a channel picks this value this will only apply for new outbound
121- * channels unless ChannelHandshakeLimits::force_announced_channel_preferences is set.
160+ * channels unless [` ChannelHandshakeLimits::force_announced_channel_preference`] is set.
122161 *
123162 * This cannot be changed after the initial channel handshake.
124163 *
@@ -166,8 +205,8 @@ public void set_commit_upfront_shutdown_pubkey(boolean val) {
166205 /**
167206 * Constructs a new ChannelConfig given each field
168207 */
169- public static ChannelConfig of (int fee_proportional_millionths_arg , short cltv_expiry_delta_arg , boolean announced_channel_arg , boolean commit_upfront_shutdown_pubkey_arg ) {
170- long ret = bindings .ChannelConfig_new (fee_proportional_millionths_arg , cltv_expiry_delta_arg , announced_channel_arg , commit_upfront_shutdown_pubkey_arg );
208+ public static ChannelConfig of (int forwarding_fee_proportional_millionths_arg , int forwarding_fee_base_msat_arg , short cltv_expiry_delta_arg , boolean announced_channel_arg , boolean commit_upfront_shutdown_pubkey_arg ) {
209+ long ret = bindings .ChannelConfig_new (forwarding_fee_proportional_millionths_arg , forwarding_fee_base_msat_arg , cltv_expiry_delta_arg , announced_channel_arg , commit_upfront_shutdown_pubkey_arg );
171210 ChannelConfig ret_hu_conv = new ChannelConfig (null , ret );
172211 ret_hu_conv .ptrs_to .add (ret_hu_conv );
173212 return ret_hu_conv ;
0 commit comments