- long ret = bindings.WatchedOutput_new(block_hash_arg, outpoint_arg == null ? 0 : outpoint_arg.ptr & ~1, script_pubkey_arg);
+ long ret = bindings.WatchedOutput_new(InternalUtils.check_arr_len(block_hash_arg, 32), outpoint_arg == null ? 0 : outpoint_arg.ptr & ~1, script_pubkey_arg);
+ Reference.reachabilityFence(block_hash_arg);
+ Reference.reachabilityFence(outpoint_arg);
+ Reference.reachabilityFence(script_pubkey_arg);