projects
/
ldk-java
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #2 from TheBlueMatt/main
[ldk-java]
/
src
/
main
/
java
/
org
/
ldk
/
structs
/
OutPoint.java
diff --git
a/src/main/java/org/ldk/structs/OutPoint.java
b/src/main/java/org/ldk/structs/OutPoint.java
index edc0a7f3c0a99a12e23d58a2e0ad5feec713ec06..d0c7edba75ad06e959af96172d93291a5b5140c8 100644
(file)
--- a/
src/main/java/org/ldk/structs/OutPoint.java
+++ b/
src/main/java/org/ldk/structs/OutPoint.java
@@
-14,13
+14,6
@@
public class OutPoint extends CommonBase {
if (ptr != 0) { bindings.OutPoint_free(ptr); }
}
if (ptr != 0) { bindings.OutPoint_free(ptr); }
}
- public OutPoint clone() {
- long ret = bindings.OutPoint_clone(this.ptr);
- OutPoint ret_hu_conv = new OutPoint(null, ret);
- ret_hu_conv.ptrs_to.add(this);
- return ret_hu_conv;
- }
-
public byte[] get_txid() {
byte[] ret = bindings.OutPoint_get_txid(this.ptr);
return ret;
public byte[] get_txid() {
byte[] ret = bindings.OutPoint_get_txid(this.ptr);
return ret;
@@
-46,6
+39,13
@@
public class OutPoint extends CommonBase {
return ret_hu_conv;
}
return ret_hu_conv;
}
+ public OutPoint clone() {
+ long ret = bindings.OutPoint_clone(this.ptr);
+ OutPoint ret_hu_conv = new OutPoint(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;
+ }
+
public byte[] to_channel_id() {
byte[] ret = bindings.OutPoint_to_channel_id(this.ptr);
return ret;
public byte[] to_channel_id() {
byte[] ret = bindings.OutPoint_to_channel_id(this.ptr);
return ret;
@@
-56,10
+56,9
@@
public class OutPoint extends CommonBase {
return ret;
}
return ret;
}
- public static
OutPoint
constructor_read(byte[] ser) {
+ public static
Result_OutPointDecodeErrorZ
constructor_read(byte[] ser) {
long ret = bindings.OutPoint_read(ser);
long ret = bindings.OutPoint_read(ser);
- OutPoint ret_hu_conv = new OutPoint(null, ret);
- ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ Result_OutPointDecodeErrorZ ret_hu_conv = Result_OutPointDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}
return ret_hu_conv;
}