}
/**
- * Flat routing fee in satoshis
+ * Flat routing fee in millisatoshis.
*/
public int get_base_msat() {
int ret = bindings.RoutingFees_get_base_msat(this.ptr);
}
/**
- * Flat routing fee in satoshis
+ * Flat routing fee in millisatoshis.
*/
public void set_base_msat(int val) {
bindings.RoutingFees_set_base_msat(this.ptr, val);
Reference.reachabilityFence(base_msat_arg);
Reference.reachabilityFence(proportional_millionths_arg);
if (ret >= 0 && ret <= 4096) { return null; }
- RoutingFees ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new RoutingFees(null, ret); }
- ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ org.ldk.structs.RoutingFees ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RoutingFees(null, ret); }
+ if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(ret_hu_conv); };
return ret_hu_conv;
}
* This ignores pointers and is_owned flags and looks at the values in fields.
* Two objects with NULL inner values will be considered "equal" here.
*/
- public boolean eq(RoutingFees b) {
- boolean ret = bindings.RoutingFees_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
+ public boolean eq(org.ldk.structs.RoutingFees b) {
+ boolean ret = bindings.RoutingFees_eq(this.ptr, b == null ? 0 : b.ptr);
Reference.reachabilityFence(this);
Reference.reachabilityFence(b);
- this.ptrs_to.add(b);
+ if (this != null) { this.ptrs_to.add(b); };
return ret;
}
long ret = bindings.RoutingFees_clone(this.ptr);
Reference.reachabilityFence(this);
if (ret >= 0 && ret <= 4096) { return null; }
- RoutingFees ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new RoutingFees(null, ret); }
- ret_hu_conv.ptrs_to.add(this);
+ org.ldk.structs.RoutingFees ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RoutingFees(null, ret); }
+ if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(this); };
return ret_hu_conv;
}