Improve stream handling (#244)

* Improve stream management

* Check swap for existing lockup/refund tx

* Set broadcast capacity to 30
This commit is contained in:
Ross Savage
2024-05-30 14:54:15 +02:00
committed by GitHub
parent 4cd2673d01
commit 35561bacc5
17 changed files with 320 additions and 454 deletions

View File

@@ -698,7 +698,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected
void cst_api_fill_to_wire_send_payment_response(
SendPaymentResponse apiObj, wire_cst_send_payment_response wireObj) {
wireObj.txid = cst_encode_String(apiObj.txid);
cst_api_fill_to_wire_payment(apiObj.payment, wireObj.payment);
}
@protected
@@ -1537,7 +1537,7 @@ final class wire_cst_receive_payment_response extends ffi.Struct {
}
final class wire_cst_send_payment_response extends ffi.Struct {
external ffi.Pointer<wire_cst_list_prim_u_8_strict> txid;
external wire_cst_payment payment;
}
const double LIQUID_CLAIM_TX_FEERATE_MSAT = 100.0;