const ret_hu_conv: Result_NetworkGraphDecodeErrorZ = Result_NetworkGraphDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}
public static constructor_new(genesis_hash: Uint8Array): NetworkGraph {
const ret_hu_conv: Result_NetworkGraphDecodeErrorZ = Result_NetworkGraphDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}
public static constructor_new(genesis_hash: Uint8Array): NetworkGraph {
const ret_hu_conv: NetworkGraph = new NetworkGraph(null, ret);
CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
return ret_hu_conv;
const ret_hu_conv: NetworkGraph = new NetworkGraph(null, ret);
CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
return ret_hu_conv;
bindings.NetworkGraph_close_channel_from_update(this.ptr, short_channel_id, is_permanent);
}
public fail_node(_node_id: Uint8Array, is_permanent: boolean): void {
bindings.NetworkGraph_close_channel_from_update(this.ptr, short_channel_id, is_permanent);
}
public fail_node(_node_id: Uint8Array, is_permanent: boolean): void {
- bindings.NetworkGraph_fail_node(this.ptr, InternalUtils.check_arr_len(_node_id, 33), is_permanent);
+ bindings.NetworkGraph_fail_node(this.ptr, bindings.encodeUint8Array(bindings.check_arr_len(_node_id, 33)), is_permanent);