]> git.bitcoin.ninja Git - ldk-java/blobdiff - src/main/java/org/ldk/structs/Filter.java
Update CI references to LDK 0.0.124 drop stale memchr pins
[ldk-java] / src / main / java / org / ldk / structs / Filter.java
index 0070014fdaef1e5974bf9f220fb5c0989cfb4d4c..f02adbea0b6c88b9b9ddbbd069c0a4a3a81c8819 100644 (file)
@@ -59,6 +59,11 @@ public class Filter extends CommonBase {
                /**
                 * Registers interest in a transaction with `txid` and having an output with `script_pubkey` as
                 * a spending condition.
                /**
                 * Registers interest in a transaction with `txid` and having an output with `script_pubkey` as
                 * a spending condition.
+                * 
+                * This may be used, for example, to monitor for when a funding transaction confirms.
+                * 
+                * The `script_pubkey` is provided for informational purposes and may be useful for block
+                * sources which only support filtering on scripts.
                 */
                void register_tx(byte[] txid, byte[] script_pubkey);
                /**
                 */
                void register_tx(byte[] txid, byte[] script_pubkey);
                /**
@@ -68,6 +73,9 @@ public class Filter extends CommonBase {
                 * to ensure that also dependent output spents within an already connected block are correctly
                 * handled, e.g., by re-scanning the block in question whenever new outputs have been
                 * registered mid-processing.
                 * to ensure that also dependent output spents within an already connected block are correctly
                 * handled, e.g., by re-scanning the block in question whenever new outputs have been
                 * registered mid-processing.
+                * 
+                * This may be used, for example, to monitor for when a funding output is spent (by any
+                * transaction).
                 */
                void register_output(WatchedOutput output);
        }
                 */
                void register_output(WatchedOutput output);
        }
@@ -91,6 +99,11 @@ public class Filter extends CommonBase {
        /**
         * Registers interest in a transaction with `txid` and having an output with `script_pubkey` as
         * a spending condition.
        /**
         * Registers interest in a transaction with `txid` and having an output with `script_pubkey` as
         * a spending condition.
+        * 
+        * This may be used, for example, to monitor for when a funding transaction confirms.
+        * 
+        * The `script_pubkey` is provided for informational purposes and may be useful for block
+        * sources which only support filtering on scripts.
         */
        public void register_tx(byte[] txid, byte[] script_pubkey) {
                bindings.Filter_register_tx(this.ptr, InternalUtils.check_arr_len(txid, 32), script_pubkey);
         */
        public void register_tx(byte[] txid, byte[] script_pubkey) {
                bindings.Filter_register_tx(this.ptr, InternalUtils.check_arr_len(txid, 32), script_pubkey);
@@ -106,12 +119,14 @@ public class Filter extends CommonBase {
         * to ensure that also dependent output spents within an already connected block are correctly
         * handled, e.g., by re-scanning the block in question whenever new outputs have been
         * registered mid-processing.
         * to ensure that also dependent output spents within an already connected block are correctly
         * handled, e.g., by re-scanning the block in question whenever new outputs have been
         * registered mid-processing.
+        * 
+        * This may be used, for example, to monitor for when a funding output is spent (by any
+        * transaction).
         */
        public void register_output(org.ldk.structs.WatchedOutput output) {
         */
        public void register_output(org.ldk.structs.WatchedOutput output) {
-               bindings.Filter_register_output(this.ptr, output == null ? 0 : output.ptr);
+               bindings.Filter_register_output(this.ptr, output.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(output);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(output);
-               if (this != null) { this.ptrs_to.add(output); };
        }
 
 }
        }
 
 }