* Two objects with NULL inner values will be considered "equal" here.
*/
public bool eq(org.ldk.structs.OutPoint b) {
- bool ret = bindings.OutPoint_eq(this.ptr, b == null ? 0 : b.ptr);
+ bool ret = bindings.OutPoint_eq(this.ptr, b.ptr);
GC.KeepAlive(this);
GC.KeepAlive(b);
if (this != null) { this.ptrs_to.AddLast(b); };
return (int)this.hash();
}
/**
- * Convert an `OutPoint` to a lightning channel id.
+ * Get the string representation of a OutPoint object
*/
- public byte[] to_channel_id() {
- long ret = bindings.OutPoint_to_channel_id(this.ptr);
+ public string to_str() {
+ long ret = bindings.OutPoint_to_str(this.ptr);
GC.KeepAlive(this);
if (ret >= 0 && ret <= 4096) { return null; }
- byte[] ret_conv = InternalUtils.decodeUint8Array(ret);
+ string ret_conv = InternalUtils.decodeString(ret);
return ret_conv;
}