[C#] Update auto-generated C# bindings
[ldk-java] / c_sharp / src / org / ldk / structs / NodeFeatures.cs
index 83fa4df267fbfd030a11ec9f3afe2d928b84d1b1..32eaf48f9b472d4dd15c9d32f2c5b15807073618 100644 (file)
@@ -50,6 +50,18 @@ public class NodeFeatures : CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Generates a non-cryptographic 64-bit hash of the NodeFeatures.
+        */
+       public long hash() {
+               long ret = bindings.NodeFeatures_hash(this.ptr);
+               GC.KeepAlive(this);
+               return ret;
+       }
+
+       public override int GetHashCode() {
+               return (int)this.hash();
+       }
        /**
         * Create a blank Features with no features set
         */
@@ -516,6 +528,40 @@ public class NodeFeatures : CommonBase {
                return ret;
        }
 
+       /**
+        * Set this feature as optional.
+        */
+       public void set_route_blinding_optional() {
+               bindings.NodeFeatures_set_route_blinding_optional(this.ptr);
+               GC.KeepAlive(this);
+       }
+
+       /**
+        * Set this feature as required.
+        */
+       public void set_route_blinding_required() {
+               bindings.NodeFeatures_set_route_blinding_required(this.ptr);
+               GC.KeepAlive(this);
+       }
+
+       /**
+        * Checks if this feature is supported.
+        */
+       public bool supports_route_blinding() {
+               bool ret = bindings.NodeFeatures_supports_route_blinding(this.ptr);
+               GC.KeepAlive(this);
+               return ret;
+       }
+
+       /**
+        * Checks if this feature is required.
+        */
+       public bool requires_route_blinding() {
+               bool ret = bindings.NodeFeatures_requires_route_blinding(this.ptr);
+               GC.KeepAlive(this);
+               return ret;
+       }
+
        /**
         * Set this feature as optional.
         */