* Protocol features of a channel communicated during its announcement
*/
public void set_features(ChannelFeatures val) {
- bindings.ChannelInfo_set_features(this.ptr, val == null ? 0 : val.ptr & ~1);
+ bindings.ChannelInfo_set_features(this.ptr, val == null ? 0 : val.ptr);
Reference.reachabilityFence(this);
Reference.reachabilityFence(val);
+ this.ptrs_to.add(val);
}
/**
* Source node of the first direction of a channel
*/
public void set_node_one(NodeId val) {
- bindings.ChannelInfo_set_node_one(this.ptr, val == null ? 0 : val.ptr & ~1);
+ bindings.ChannelInfo_set_node_one(this.ptr, val == null ? 0 : val.ptr);
Reference.reachabilityFence(this);
Reference.reachabilityFence(val);
+ this.ptrs_to.add(val);
}
/**
* Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None
*/
public void set_one_to_two(@Nullable ChannelUpdateInfo val) {
- bindings.ChannelInfo_set_one_to_two(this.ptr, val == null ? 0 : val.ptr & ~1);
+ bindings.ChannelInfo_set_one_to_two(this.ptr, val == null ? 0 : val.ptr);
Reference.reachabilityFence(this);
Reference.reachabilityFence(val);
+ this.ptrs_to.add(val);
}
/**
* Source node of the second direction of a channel
*/
public void set_node_two(NodeId val) {
- bindings.ChannelInfo_set_node_two(this.ptr, val == null ? 0 : val.ptr & ~1);
+ bindings.ChannelInfo_set_node_two(this.ptr, val == null ? 0 : val.ptr);
Reference.reachabilityFence(this);
Reference.reachabilityFence(val);
+ this.ptrs_to.add(val);
}
/**
* Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None
*/
public void set_two_to_one(@Nullable ChannelUpdateInfo val) {
- bindings.ChannelInfo_set_two_to_one(this.ptr, val == null ? 0 : val.ptr & ~1);
+ bindings.ChannelInfo_set_two_to_one(this.ptr, val == null ? 0 : val.ptr);
Reference.reachabilityFence(this);
Reference.reachabilityFence(val);
+ this.ptrs_to.add(val);
}
/**
* Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None
*/
public void set_announcement_message(@Nullable ChannelAnnouncement val) {
- bindings.ChannelInfo_set_announcement_message(this.ptr, val == null ? 0 : val.ptr & ~1);
+ bindings.ChannelInfo_set_announcement_message(this.ptr, val == null ? 0 : val.ptr);
Reference.reachabilityFence(this);
Reference.reachabilityFence(val);
+ this.ptrs_to.add(val);
}
long clone_ptr() {