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