- public void set_remote_network_id(ChannelDetails this_ptr, byte[] val) {
- bindings.ChannelDetails_set_remote_network_id(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
- this.ptrs_to.add(this_ptr);
+ /**
+ * The node_id of our counterparty
+ */
+ public void set_remote_network_id(byte[] val) {
+ bindings.ChannelDetails_set_remote_network_id(this.ptr, val);
+ }
+
+ /**
+ * The Features the channel counterparty provided upon last connection.
+ * Useful for routing as it is the most up-to-date copy of the counterparty's features and
+ * many routing-relevant features are present in the init context.
+ */
+ public InitFeatures get_counterparty_features() {
+ long ret = bindings.ChannelDetails_get_counterparty_features(this.ptr);
+ InitFeatures ret_hu_conv = new InitFeatures(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;
+ }
+
+ /**
+ * The Features the channel counterparty provided upon last connection.
+ * Useful for routing as it is the most up-to-date copy of the counterparty's features and
+ * many routing-relevant features are present in the init context.
+ */
+ public void set_counterparty_features(InitFeatures val) {
+ bindings.ChannelDetails_set_counterparty_features(this.ptr, val == null ? 0 : val.ptr & ~1);
+ this.ptrs_to.add(val);