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