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