X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FClosingSignedFeeRange.cs;h=72f5aee8d9a0cb9f4b7b627338a105a9145fb092;hb=3d1f246d05172683acd3b81836de4e4e9f0c1afd;hp=78dfa13cd4aa2006fae8ed07ad436fd50a2e41ed;hpb=8de7213fbf663ff60322896282dad51e8ab2f001;p=ldk-java diff --git a/c_sharp/src/org/ldk/structs/ClosingSignedFeeRange.cs b/c_sharp/src/org/ldk/structs/ClosingSignedFeeRange.cs index 78dfa13c..72f5aee8 100644 --- a/c_sharp/src/org/ldk/structs/ClosingSignedFeeRange.cs +++ b/c_sharp/src/org/ldk/structs/ClosingSignedFeeRange.cs @@ -89,6 +89,18 @@ public class ClosingSignedFeeRange : CommonBase { return ret_hu_conv; } + /** + * Generates a non-cryptographic 64-bit hash of the ClosingSignedFeeRange. + */ + public long hash() { + long ret = bindings.ClosingSignedFeeRange_hash(this.ptr); + GC.KeepAlive(this); + return ret; + } + + public override int GetHashCode() { + return (int)this.hash(); + } /** * Checks if two ClosingSignedFeeRanges contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields.