Commit Graph

  • 5081a83245
    mpp_split: undo side effect in tearDown bitromortac 2021-02-25 08:08:47 +0100
  • 16f0b30ced
    lnpeer: MPP recv: only fulfill htlc if amt sum exact-matches total_msat SomberNight 2021-02-24 20:40:49 +0100
  • 9024419fdc
    lnpeer: MPP receive: require payment_secret for each htlc SomberNight 2021-02-24 20:34:34 +0100
  • 691ebaf4f8
    lnworker/lnpeer: add some type hints, force some kwargs SomberNight 2021-02-24 20:03:12 +0100
  • d800f88bfc
    (trivial) wallet: fix over-indentation SomberNight 2021-02-24 18:34:17 +0100
  • c9d6d11604 create_trampoline_route: check that we can pay the amount and the fees, and that the route is sane ThomasV 2021-02-24 18:25:49 +0100
  • ab9bf07a79
    (trivial) lnrouter: fix type of TrampolineEdge.short_channel_id SomberNight 2021-02-24 16:46:59 +0100
  • bf1d516959 lnworker: add fees from private path to the amount passed to find_route. (see #7050) ThomasV 2021-02-24 16:11:15 +0100
  • 391dba7117 Refactor find_route_for_payment - remove duplicated code - rename variable names to be consistent with the 'path', 'route' terminology - compute private route before route ThomasV 2021-02-24 15:00:23 +0100
  • 152894e6a9 calc_hops_data: total_msat should be optional ThomasV 2021-02-24 16:14:19 +0100
  • 0a5b714643
    lnworker: add "endurance" ACINQ testnet node as hardcoded trampoline SomberNight 2021-02-24 13:38:04 +0100
  • 52eb9dcad9
    tests: fix thinko in ElectrumTestCase base class SomberNight 2021-02-24 13:32:29 +0100
  • a9d0e3fca9
    tests: try to eliminate random failures from mpp_split tests SomberNight 2021-02-24 12:54:43 +0100
  • 228c4b4597
    synchronizer: better handle history-status mismatch SomberNight 2021-02-24 12:32:54 +0100
  • 4a8286c744
    qrscanner: nicer error messages SomberNight 2021-02-23 22:38:53 +0100
  • 22a14d42b2
    Merge pull request #7061 from zebra-lucky/add_kivy_scan_qr_non_android ThomasV 2021-02-23 12:03:13 +0100
  • f6011dc31a kivy: add app.scan_qr_non_android zebra-lucky 2021-02-23 12:51:23 +0200
  • 10611876ee qt: update swap button together with can_send ThomasV 2021-02-23 10:58:21 +0100
  • 618b008c54
    Merge pull request #7060 from bitromortac/mpp-test-fix ThomasV 2021-02-23 10:23:35 +0100
  • 9b0b78eca1
    mpp_split: fix tests for python versions < 3.8 bitromortac 2021-02-23 07:47:58 +0100
  • 4937fd2788
    scripts: add script that broadcasts tx to lots of servers SomberNight 2021-02-23 04:19:47 +0100
  • 26d73cba0e
    interface.get_history: enforce sorted order of heights SomberNight 2021-02-23 02:13:16 +0100
  • 99845942e5
    DeviceMgr: don't mark client as failing if create_client() is None SomberNight 2021-02-22 20:11:14 +0100
  • e42120cac5
    lnutil.LnFeatures: update LN_FEATURES_IMPLEMENTED SomberNight 2021-02-22 20:04:47 +0100
  • baad8ab3ff
    lnutil.LnFeatures: update context for "option_support_large_channel" SomberNight 2021-02-22 20:01:45 +0100
  • 4aab843f17
    lnutil.LnFeatures: impl and use "supports" method for feature-bit-tests SomberNight 2021-02-22 19:53:01 +0100
  • 0369829e5e MPP: can_send/can_receive is now the sum, no longer the max ThomasV 2020-12-29 14:37:53 +0100
  • 827cd344d5 enable MPP with trampoline ThomasV 2021-02-22 15:55:22 +0100
  • 6922b416d6 follow-up prev commit ThomasV 2021-02-22 15:38:19 +0100
  • 64c9ddb88d MPP: refactor code ThomasV 2021-02-22 14:24:23 +0100
  • 9ea2c275ce
    Merge pull request #7050 from bitromortac/mpp-send ThomasV 2021-02-22 13:51:59 +0100
  • e9fe0ed22b
    lnworker: use suggest_splits for multiple routes bitromortac 2021-02-19 09:04:19 +0100
  • 9f84fa9580
    lnonion: add total_msat to onion payment data bitromortac 2021-02-19 08:34:03 +0100
  • 613bab145d
    mpp_split: implement splitting logic bitromortac 2021-02-19 08:20:46 +0100
  • 1c52203346 wizard: focus password field (fix #7048) ThomasV 2021-02-21 11:41:34 +0100
  • 8bdbcf73d9
    network.py: update bitcoin core error msg whitelist SomberNight 2021-02-21 04:48:36 +0100
  • 3a40d48a6e lnpeer: remove recursve call in maybe_fulfill_htlc ThomasV 2021-02-20 14:20:55 +0100
  • 9b7f9219a3 fix travis builds (update openssl) ThomasV 2021-02-19 15:49:37 +0100
  • 55fdddb0b8 Add back the 'to_height' and 'from_height' to onchain_history command Exclude unconfirmed transactions from --to_height and include them into --from_height. The reason being that an unconfirmed transaction will end up eventually into the last block which most of the time will be higher than --from_height Marius Baisan 2021-02-19 12:45:45 +0200
  • 3ddb83fad3
    lnworker: move NoPathFound to lnutil bitromortac 2021-02-19 09:27:28 +0100
  • d75f9c6e80
    kivy: receive request: fix RefLabel for "Address" so it can be exported SomberNight 2021-02-19 02:29:00 +0100
  • 1ee99cf9c4
    interface: "block.headers": nicer error if server uses too low 'max' SomberNight 2021-02-18 20:40:38 +0100
  • d906819b03 minor fix following method rename ThomasV 2021-02-18 13:36:54 +0100
  • 998f41256f
    Merge pull request #7041 from SomberNight/20200218_invoice_amt_oob ThomasV 2021-02-18 12:01:48 +0100
  • ba5e73d978 kivy: show routing options explicitly ThomasV 2021-02-18 11:39:52 +0100
  • 880353287d lnrater: fix #6764 ThomasV 2021-02-18 10:59:45 +0100
  • 0aa36ab5ac
    invoices: validate 'amount' not to be out-of-bounds SomberNight 2021-02-18 02:18:09 +0100
  • 24d47022b4
    util: assert that Decimal precision is sufficient SomberNight 2021-02-18 02:40:21 +0100
  • b856336f8c
    bip32: add new test vectors from BIP SomberNight 2021-02-18 00:36:20 +0100
  • bab22c8c53 minor: fix exception ThomasV 2021-02-17 18:18:21 +0100
  • 0e23f33f59 kivy and qt: adapt open_channel dialogs to trampoline ThomasV 2021-02-11 14:46:36 +0100
  • cf818fe08c Trampoline routing: - add support for trampoline forwarding - add regtest with trampoline payment ThomasV 2021-02-09 15:09:27 +0100
  • ded449233e Trampoline routing. - trampoline is enabled by default in config, to prevent download of `gossip_db`. (if disabled, `gossip_db` will be downloaded, regardless of the existence of channels) - if trampoline is enabled: - the wallet can only open channels with trampoline nodes - already-existing channels with non-trampoline nodes are frozen for sending. - there are two types of trampoline payments: legacy and end-to-end (e2e). - we decide to perform legacy or e2e based on the invoice: - we use trampoline_routing_opt in features to detect Eclair and Phoenix invoices - we use trampoline_routing_hints to detect Electrum invoices - when trying a legacy payment, we add a second trampoline to the path to preserve privacy. (we fall back to a single trampoline if the payment fails for all trampolines) - the trampoline list is hardcoded, it will remain so until `trampoline_routing_opt` feature flag is in INIT. - there are currently only two nodes in the hardcoded list, it would be nice to have more. - similar to Phoenix, we find the fee/cltv by trial-and-error. - if there is a second trampoline in the path, we use the same fee for both. - the final spec should add fee info in error messages, so we will be able to fine-tune fees ThomasV 2020-11-11 11:03:31 +0100
  • f4fe80dfd1 kivy: show node alias in channels dialog. Rename the menu back to 'Channels' ThomasV 2021-02-17 16:44:43 +0100
  • cba49db196
    windows build: update gnupg(2.2.19-3ubuntu2.1) (#7030) Jin Eguchi 2021-02-17 08:27:29 +0900
  • 1dea8393d7
    wallet: follow-up b080df9cff SomberNight 2021-02-16 22:28:11 +0100
  • 1323bd4f9c open_channel_coroutine: do not timeout on sign_transaction. fixes #7027 ThomasV 2021-02-15 16:47:42 +0100
  • 01ed5e7345
    wallet.bump_fee: (fix) method2 was bumping too much if output was rm-ed SomberNight 2021-02-13 03:29:23 +0100
  • b080df9cff
    wallet.bump_fee: (fix) make sure input signatures are removed SomberNight 2021-02-15 09:20:31 +0100
  • 4346d2fc76
    synchronizer: ensure fairness between wallets SomberNight 2021-02-12 21:31:18 +0100
  • 83750a861f
    ledger: bump min btchip-python (0.1.30->0.1.32) SomberNight 2021-02-12 05:28:01 +0100
  • 914eb9989d
    wallet: minor clean-up of tx.set_rbf() calls SomberNight 2021-02-11 21:52:34 +0100
  • ca86e35724
    wallet.bump_fee: (fix) make sure all inputs have same sequence number SomberNight 2021-02-11 21:46:51 +0100
  • b56fe237cd
    ledger: give clear error that old HW.1 cannot send to bech32 address SomberNight 2021-02-12 04:47:53 +0100
  • 87a080d30e split code in htlc_switch: - raise OnionRoutingFailure whenever we want to fail a htlc - catch that exception in htlc_switch - this will avoid code duplication in the case of trampoline ThomasV 2021-02-10 13:16:33 +0100
  • fa1762792a
    lntransport: CancelledError needs priority over LPConnClosed SomberNight 2021-02-10 19:40:10 +0100
  • 2057185aa4
    Merge pull request #7011 from zebra-lucky/make_payreq_details_network ThomasV 2021-02-09 10:51:50 +0100
  • c43729b076 make_unsigned_request: set network for testnet zebra-lucky 2021-02-08 20:26:16 +0200
  • 42c10c2fec Separate pay_to_node logic from pay_invoice: - pay_to_node will be needed to forward trampoline onions. - pay_to_node either is successful or raises - pay_invoice handles invoice status ThomasV 2021-02-07 11:57:20 +0100
  • 2c2d3f3b30 handle_error_from_failed_htlc: blacklist channel if cannot decode payload ThomasV 2021-02-07 12:34:28 +0100
  • 4febbcdc2d encapsulate get_routing_info in lnaddr ThomasV 2021-02-07 12:21:00 +0100
  • 0c93394513 rename lnworker._pay to pay_invoice, call it directly from GUIs ThomasV 2021-02-07 12:09:37 +0100
  • 9c4807644b
    Fix ledger sign message (#7004) Gordan Nekić 2021-02-06 06:16:52 +0100
  • 2bffc9d3eb
    lnpeer: fix timed out mpp bitromortac 2021-02-05 21:52:13 +0100
  • c01ca101e0 minor: fix typo ThomasV 2021-02-05 17:23:38 +0100
  • 34734bd229 cleanup, follow-up f28a2aae73 ThomasV 2021-02-05 17:09:47 +0100
  • cc69cf3f33 Qt: fix deprecation warning ThomasV 2021-02-05 16:43:00 +0100
  • f28a2aae73 Reorganize code so that we can send Multi Part Payments: - LNWorker is notified about htlc events and creates payment events. - LNWorker._pay is a while loop that calls create_routes_from_invoice. - create_route_from_invoices should decide whether to split the payment, using graph knowledge and feedback from previous attempts (not in this commit) - data structures for payment logs are simplified into a single type, HtlcLog ThomasV 2021-01-30 16:10:51 +0100
  • 1102ea50e8 fix tests (follow-up previous commit) ThomasV 2021-02-05 11:57:19 +0100
  • ff8fc798f4 follow-up c0bf9b4509 ThomasV 2021-02-05 11:33:45 +0100
  • ef5a265449 basic_mpp: receive multi-part payments ThomasV 2021-01-27 19:27:06 +0100
  • c0bf9b4509 LNWorker: do not save PR_INFLIGHT status, detect it on startup instead ThomasV 2021-02-04 15:48:00 +0100
  • 51455c9d9a
    Merge pull request #6993 from zebra-lucky/pr_check_network ThomasV 2021-02-04 09:56:58 +0100
  • d53d4e46e6 paymentrequest: check network on PaymentRequest parse zebra-lucky 2021-02-04 07:32:37 +0200
  • cb3977798c
    add function to determine script-type for all inputs in a psbt (#6984) rage-proof 2021-02-04 03:52:40 +0100
  • d34b8d69f6
    build-wine/README.md: add comment about needing recent docker version SomberNight 2021-02-01 22:30:54 +0100
  • 5d19d5d4bd
    Fix windows build(travis) (#6981) Jin Eguchi 2021-02-01 12:32:29 -0900
  • 337d4890a1
    lnworker/swaps: add '_sat' suffix to arg names and force kwargs SomberNight 2021-02-01 22:11:56 +0100
  • 3d1796ab1d
    follow-up prev: fix units when calling lnworker.create_invoice: msat/sat SomberNight 2021-02-01 22:08:09 +0100
  • e477a43385 PaymentInfo: use msat precision ThomasV 2021-02-01 14:17:04 +0100
  • 1fb0c28d0a
    exchange_rate: (fix) rm need to restart app to disable FX rates SomberNight 2021-01-29 19:53:04 +0100
  • 1a629d88e7
    windows binaries: bump wine version SomberNight 2021-01-29 18:10:48 +0100
  • 27cd078001 wallet: auto-freeze small unconfirmed UTXOs SomberNight 2021-01-22 21:38:32 +0100
  • 2b0f156ce8
    lnpeer.htlc_switch: (bugfix) don't fulfill htlc until add is irrevocable SomberNight 2021-01-28 20:03:30 +0100
  • e8a2fa5596
    tests: lnpeer.htlc_switch: don't fulfill htlc until add is irrevocable SomberNight 2021-01-28 20:00:48 +0100
  • 521376f87f rm unused parameter in maybe_fulfill_htlc ThomasV 2021-01-28 13:10:43 +0100
  • fe1b2149cb lnpeer: fix flen in INIT ThomasV 2021-01-28 11:14:53 +0100
  • 1d9311aeef
    qt network dialog: show protocol (if ":t") for servers in NodesList SomberNight 2021-01-27 20:43:00 +0100
  • d13995309a
    qt main_window: add error handling to show_bitcoin_paper SomberNight 2021-01-27 20:38:23 +0100
  • 338adf05ba
    interface.get_transaction: stricter sanitisation SomberNight 2021-01-27 20:14:55 +0100