Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: lightning ordermatching wip + library updates and more unit tes…
…ts (#1655) * add a unit test to test lightning taker getting swap preimage from the chain, test is failing for now * update rust-lightning to v0.0.111 wip * update rust-lightning to v0.0.113 wip * update uuid to v1.2.2, use uuid instead of rpc_channel_id for lightning channels * add unit tests for mpp and claiming swaps on-chain * Add channel confirmation details to rpc response * add test_lightning_maker_swap_mpp * wip: use protocol info to not match with lightning orders if there are not routes between swap parties * wip: add amount to protocol info route check * wip: refactor lightning protocol info code * Add max_total_cltv_expiry_delta and final_cltv_expiry_delta to route check in lightning protocol info check * Fix funding_generated_in_block is Null in DB error when 0 conf is enabled and channel is closed before funding tx is confirmed * remove some unneeded todos, write better todos * remove more todos * review fixes: use bech32 0.9.1, return error instead of using expect for current_time * review fixes: use macro to simplify code, sort by short_channel_id * review fixes: add doc comments for uuid and channel_id * Fix channel was closed issue but closing transaction wasn't broadcasted due to a network error (all electrums were down, etc..) * fix issue in db when retrying to pay an invoice * move converting tx hex to bytes outside send transaction loop in BroadcasterInterface * import uuid::Error as UuidError in my_swaps.rs --------- Reviewed-by: ozkanonur <work@onurozkan.dev>, borngraced <samiodev@icloud.com>, caglaryucekaya <caglaryucekaya@gmail.com>
- Loading branch information