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