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
/
BestBlock.java
diff --git
a/src/main/java/org/ldk/structs/BestBlock.java
b/src/main/java/org/ldk/structs/BestBlock.java
index 9377da15b41062394d6870f6c23a4d4ee9e5e86c..9d3629ebe4c016a63fe31e4eff59802e69ef6118 100644
(file)
--- a/
src/main/java/org/ldk/structs/BestBlock.java
+++ b/
src/main/java/org/ldk/structs/BestBlock.java
@@
-24,8
+24,8
@@
public class BestBlock extends CommonBase {
*/
public BestBlock clone() {
long ret = bindings.BestBlock_clone(this.ptr);
*/
public BestBlock clone() {
long ret = bindings.BestBlock_clone(this.ptr);
- if (ret >= 0 && ret <
1024
) { return null; }
- BestBlock ret_hu_conv = n
ew BestBlock(null, ret);
+ if (ret >= 0 && ret <
= 4096
) { return null; }
+ BestBlock ret_hu_conv = n
ull; if (ret < 0 || ret > 4096) { ret_hu_conv = new BestBlock(null, ret); }
ret_hu_conv.ptrs_to.add(this);
return ret_hu_conv;
}
ret_hu_conv.ptrs_to.add(this);
return ret_hu_conv;
}
@@
-36,8
+36,8
@@
public class BestBlock extends CommonBase {
*/
public static BestBlock from_genesis(org.ldk.enums.Network network) {
long ret = bindings.BestBlock_from_genesis(network);
*/
public static BestBlock from_genesis(org.ldk.enums.Network network) {
long ret = bindings.BestBlock_from_genesis(network);
- if (ret >= 0 && ret <
1024
) { return null; }
- BestBlock ret_hu_conv = n
ew BestBlock(null, ret);
+ if (ret >= 0 && ret <
= 4096
) { return null; }
+ BestBlock ret_hu_conv = n
ull; if (ret < 0 || ret > 4096) { ret_hu_conv = new BestBlock(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;
}
@@
-47,8
+47,8
@@
public class BestBlock extends CommonBase {
*/
public static BestBlock of(byte[] block_hash, int height) {
long ret = bindings.BestBlock_new(block_hash, height);
*/
public static BestBlock of(byte[] block_hash, int height) {
long ret = bindings.BestBlock_new(block_hash, height);
- if (ret >= 0 && ret <
1024
) { return null; }
- BestBlock ret_hu_conv = n
ew BestBlock(null, ret);
+ if (ret >= 0 && ret <
= 4096
) { return null; }
+ BestBlock ret_hu_conv = n
ull; if (ret < 0 || ret > 4096) { ret_hu_conv = new BestBlock(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;
}