projects
/
ldk-java
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update auto-generated bindings to 0.0.103
[ldk-java]
/
src
/
main
/
java
/
org
/
ldk
/
structs
/
NodeId.java
diff --git
a/src/main/java/org/ldk/structs/NodeId.java
b/src/main/java/org/ldk/structs/NodeId.java
index a878cb5aaa1fd7fbc440776d8801267f21930edf..e74d649ae688fa69a0c5b9770ee08929feaae4e4 100644
(file)
--- a/
src/main/java/org/ldk/structs/NodeId.java
+++ b/
src/main/java/org/ldk/structs/NodeId.java
@@
-24,8
+24,8
@@
public class NodeId extends CommonBase {
*/
public NodeId clone() {
long ret = bindings.NodeId_clone(this.ptr);
*/
public NodeId clone() {
long ret = bindings.NodeId_clone(this.ptr);
- if (ret >= 0 && ret <
1024
) { return null; }
- NodeId ret_hu_conv = n
ew NodeId(null, ret);
+ if (ret >= 0 && ret <
= 4096
) { return null; }
+ NodeId ret_hu_conv = n
ull; if (ret < 0 || ret > 4096) { ret_hu_conv = new NodeId(null, ret); }
ret_hu_conv.ptrs_to.add(this);
return ret_hu_conv;
}
ret_hu_conv.ptrs_to.add(this);
return ret_hu_conv;
}
@@
-35,8
+35,8
@@
public class NodeId extends CommonBase {
*/
public static NodeId from_pubkey(byte[] pubkey) {
long ret = bindings.NodeId_from_pubkey(pubkey);
*/
public static NodeId from_pubkey(byte[] pubkey) {
long ret = bindings.NodeId_from_pubkey(pubkey);
- if (ret >= 0 && ret <
1024
) { return null; }
- NodeId ret_hu_conv = n
ew NodeId(null, ret);
+ if (ret >= 0 && ret <
= 4096
) { return null; }
+ NodeId ret_hu_conv = n
ull; if (ret < 0 || ret > 4096) { ret_hu_conv = new NodeId(null, ret); }
ret_hu_conv.ptrs_to.add(ret_hu_conv);
return ret_hu_conv;
}
ret_hu_conv.ptrs_to.add(ret_hu_conv);
return ret_hu_conv;
}
@@
-70,7
+70,7
@@
public class NodeId extends CommonBase {
*/
public static Result_NodeIdDecodeErrorZ read(byte[] ser) {
long ret = bindings.NodeId_read(ser);
*/
public static Result_NodeIdDecodeErrorZ read(byte[] ser) {
long ret = bindings.NodeId_read(ser);
- if (ret >= 0 && ret <
1024
) { return null; }
+ if (ret >= 0 && ret <
= 4096
) { return null; }
Result_NodeIdDecodeErrorZ ret_hu_conv = Result_NodeIdDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}
Result_NodeIdDecodeErrorZ ret_hu_conv = Result_NodeIdDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}