Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / Listen.java
index d975ccaa6a46e535ee3aec2a84b2b73d55dcfb14..8c57278ad42581059ccfd49e23eb4af16736f816 100644 (file)
@@ -4,6 +4,7 @@ import org.ldk.impl.bindings;
 import org.ldk.enums.*;
 import org.ldk.util.*;
 import java.util.Arrays;
+import javax.annotation.Nullable;
 
 /**
  * The `Listen` trait is used to notify when blocks have been connected or disconnected from the
@@ -62,7 +63,7 @@ public class Listen extends CommonBase {
         * Notifies the listener that a block was removed at the given height.
         */
        public void block_disconnected(byte[] header, int height) {
-               bindings.Listen_block_disconnected(this.ptr, header, height);
+               bindings.Listen_block_disconnected(this.ptr, InternalUtils.check_arr_len(header, 80), height);
        }
 
 }