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