X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FQueryShortChannelIds.cs;h=318c3ac4631c06d761c9b55954fbd5357e27c13d;hb=3d1f246d05172683acd3b81836de4e4e9f0c1afd;hp=f450b34ff730ea3c58089a49d57c30257d33e5e6;hpb=a32b8843c44637ebd82c83390d17db573b972153;p=ldk-java diff --git a/c_sharp/src/org/ldk/structs/QueryShortChannelIds.cs b/c_sharp/src/org/ldk/structs/QueryShortChannelIds.cs index f450b34f..318c3ac4 100644 --- a/c_sharp/src/org/ldk/structs/QueryShortChannelIds.cs +++ b/c_sharp/src/org/ldk/structs/QueryShortChannelIds.cs @@ -98,6 +98,18 @@ public class QueryShortChannelIds : CommonBase { return ret_hu_conv; } + /** + * Generates a non-cryptographic 64-bit hash of the QueryShortChannelIds. + */ + public long hash() { + long ret = bindings.QueryShortChannelIds_hash(this.ptr); + GC.KeepAlive(this); + return ret; + } + + public override int GetHashCode() { + return (int)this.hash(); + } /** * Checks if two QueryShortChannelIdss contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields.