X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FWatchedOutput.java;h=4319efec8d5906f22cc0dab6fbbbf01ad29a400e;hb=07d5d868dfe064aadb28a7f7ca6002c16be9723d;hp=214da3b08b9081676ef2534847b0ea610bb97568;hpb=32973ea2749f8efd05b543dd774763513013b38b;p=ldk-java diff --git a/src/main/java/org/ldk/structs/WatchedOutput.java b/src/main/java/org/ldk/structs/WatchedOutput.java index 214da3b0..4319efec 100644 --- a/src/main/java/org/ldk/structs/WatchedOutput.java +++ b/src/main/java/org/ldk/structs/WatchedOutput.java @@ -33,11 +33,11 @@ public class WatchedOutput extends CommonBase { /** * First block where the transaction output may have been spent. */ - public Option_BlockHashZ get_block_hash() { + public Option_ThirtyTwoBytesZ get_block_hash() { long ret = bindings.WatchedOutput_get_block_hash(this.ptr); Reference.reachabilityFence(this); if (ret >= 0 && ret <= 4096) { return null; } - org.ldk.structs.Option_BlockHashZ ret_hu_conv = org.ldk.structs.Option_BlockHashZ.constr_from_ptr(ret); + org.ldk.structs.Option_ThirtyTwoBytesZ ret_hu_conv = org.ldk.structs.Option_ThirtyTwoBytesZ.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(this); }; return ret_hu_conv; } @@ -45,7 +45,7 @@ public class WatchedOutput extends CommonBase { /** * First block where the transaction output may have been spent. */ - public void set_block_hash(org.ldk.structs.Option_BlockHashZ val) { + public void set_block_hash(org.ldk.structs.Option_ThirtyTwoBytesZ val) { bindings.WatchedOutput_set_block_hash(this.ptr, val.ptr); Reference.reachabilityFence(this); Reference.reachabilityFence(val); @@ -95,7 +95,7 @@ public class WatchedOutput extends CommonBase { /** * Constructs a new WatchedOutput given each field */ - public static WatchedOutput of(org.ldk.structs.Option_BlockHashZ block_hash_arg, org.ldk.structs.OutPoint outpoint_arg, byte[] script_pubkey_arg) { + public static WatchedOutput of(org.ldk.structs.Option_ThirtyTwoBytesZ block_hash_arg, org.ldk.structs.OutPoint outpoint_arg, byte[] script_pubkey_arg) { long ret = bindings.WatchedOutput_new(block_hash_arg.ptr, outpoint_arg == null ? 0 : outpoint_arg.ptr, script_pubkey_arg); Reference.reachabilityFence(block_hash_arg); Reference.reachabilityFence(outpoint_arg);