[C#] Update auto-generated C# bindings
[ldk-java] / c_sharp / src / org / ldk / structs / OpenChannelV2.cs
index 6ddfeb0e9f266a6998653c3cf039a0cb9c218e73..ec182be253b5e9b6762396a0241dd28e5bed6438 100644 (file)
@@ -510,6 +510,18 @@ public class OpenChannelV2 : CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Generates a non-cryptographic 64-bit hash of the OpenChannelV2.
+        */
+       public long hash() {
+               long ret = bindings.OpenChannelV2_hash(this.ptr);
+               GC.KeepAlive(this);
+               return ret;
+       }
+
+       public override int GetHashCode() {
+               return (int)this.hash();
+       }
        /**
         * Checks if two OpenChannelV2s contain equal inner contents.
         * This ignores pointers and is_owned flags and looks at the values in fields.