* The fees which must be paid to use this channel
*/
public void set_fees(org.ldk.structs.RoutingFees val) {
- bindings.RouteHintHop_set_fees(this.ptr, val == null ? 0 : val.ptr);
+ bindings.RouteHintHop_set_fees(this.ptr, val.ptr);
Reference.reachabilityFence(this);
Reference.reachabilityFence(val);
if (this != null) { this.ptrs_to.add(val); };
* Constructs a new RouteHintHop given each field
*/
public static RouteHintHop of(byte[] src_node_id_arg, long short_channel_id_arg, org.ldk.structs.RoutingFees fees_arg, short cltv_expiry_delta_arg, org.ldk.structs.Option_u64Z htlc_minimum_msat_arg, org.ldk.structs.Option_u64Z htlc_maximum_msat_arg) {
- long ret = bindings.RouteHintHop_new(InternalUtils.check_arr_len(src_node_id_arg, 33), short_channel_id_arg, fees_arg == null ? 0 : fees_arg.ptr, cltv_expiry_delta_arg, htlc_minimum_msat_arg.ptr, htlc_maximum_msat_arg.ptr);
+ long ret = bindings.RouteHintHop_new(InternalUtils.check_arr_len(src_node_id_arg, 33), short_channel_id_arg, fees_arg.ptr, cltv_expiry_delta_arg, htlc_minimum_msat_arg.ptr, htlc_maximum_msat_arg.ptr);
Reference.reachabilityFence(src_node_id_arg);
Reference.reachabilityFence(short_channel_id_arg);
Reference.reachabilityFence(fees_arg);
* Two objects with NULL inner values will be considered "equal" here.
*/
public boolean eq(org.ldk.structs.RouteHintHop b) {
- boolean ret = bindings.RouteHintHop_eq(this.ptr, b == null ? 0 : b.ptr);
+ boolean ret = bindings.RouteHintHop_eq(this.ptr, b.ptr);
Reference.reachabilityFence(this);
Reference.reachabilityFence(b);
if (this != null) { this.ptrs_to.add(b); };