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