Commit Graph

  • 730be17aba Use separate lightning nodes for gossip and channel operations. ThomasV 2019-04-26 12:48:02 +0200
  • 12743bda93 remove test_require_data_loss_protect ThomasV 2019-04-30 10:31:27 +0200
  • 34f22e6681 lnrouter: load data before finding path ThomasV 2019-03-21 12:44:32 +0100
  • dac686b11d minor fix ThomasV 2019-03-22 10:09:16 +0100
  • fda6fb6521 lnhtlc: handle fails asymmetrically SomberNight 2019-03-21 17:34:42 +0100
  • f47519bdf3 lnchan: make_commitment and balance (follow-up prev) SomberNight 2019-03-21 22:52:33 +0100
  • 8632f027da lnhtlc: small clean-up / docstrings SomberNight 2019-03-21 22:51:18 +0100
  • 268f05c60c lnhtlc: add type hints SomberNight 2019-03-07 17:03:45 +0100
  • 796f199a5b follow-up prev commit ThomasV 2019-03-21 15:20:18 +0100
  • a6469904ee fix verify_sig_for_channel_update: use raw message ThomasV 2019-03-21 13:35:10 +0100
  • 407114d3cc lnpeer: - disable option data_loss_protect - disable query_short_channel_ids - increase timeouts in pay ThomasV 2019-03-21 12:37:19 +0100
  • e2182f5846 lnwatcher fixes ThomasV 2019-03-20 09:53:08 +0100
  • f0ac81419c increase timeout in open_channel ThomasV 2019-03-19 13:24:47 +0100
  • 5eab60621d lnpeer: - send data_loss_protect fields with channel_reestablish - close connection if we receive an unknown channel_reestablish - log all exceptions that make us close a connection - formatting ThomasV 2019-03-19 12:58:09 +0100
  • b76728d459 lnrouter: fix get_last_good_address: one_or_none -> all ThomasV 2019-03-19 12:46:54 +0100
  • 9983578df0 lightning tx: remove amount from label ThomasV 2019-03-19 10:17:14 +0100
  • 93e8d4f953 channel_db: fix timestamp_range, reduce verbosity ThomasV 2019-03-18 12:24:37 +0100
  • aa398993cf lnrouter fixes: - use gossip_queries_req instead of initial_routing_sync - add connected nodes to recent peers only after successful init - derive timestamp used with gossip_timestamp_filter from channel_db - fix query_short_channel_ids: 1. channel IDs must be sorted with zlib 2. limit request to 100 3. do not abuse this to request node_announcements; it is fine not to have all nodes. - fix get_recent_peers: 1. do not set last_connected_date to 'now' if we never connected a node 2. sql query was misconstructed and was returning only one peer - populate FALLBACK_NODE_LIST_MAINNET with nodes that have the requested flags ThomasV 2019-03-18 11:03:37 +0100
  • e7888a50be fix sql conflicts in lnrouter ThomasV 2019-03-17 11:54:31 +0100
  • eae8f1a139 gui: show only initialized peers ThomasV 2019-03-16 21:21:18 +0100
  • f5eb369fb7 lnpeer: spawn wait_for(self.initialized) to kill the TaskGroup if it times out ThomasV 2019-03-16 21:20:14 +0100
  • 2c80996fbf lnrouter: fix primary key conflict in Policy update ThomasV 2019-03-15 15:47:31 +0100
  • e7218d798d add get_channel_ctx to CLI, for testing breaches ThomasV 2019-03-14 18:31:41 +0100
  • a698344136 cleanup tests that use regtest: - separate setup from execution - install bitcoind and electrumx in travis - use the same framework for lnwatcher and forwarding - make tests runnable locally ThomasV 2019-03-11 21:00:29 +0100
  • 023d4026b9 fix local_index in channel _shutdown ThomasV 2019-03-14 09:47:51 +0100
  • 3abe30e9d8 basic watchtower synchronization ThomasV 2019-03-12 18:33:36 +0100
  • c155293166 follow-up variable renaming ThomasV 2019-03-12 13:53:22 +0100
  • 5148397a75 test forwarding ThomasV 2019-03-11 21:00:29 +0100
  • 90c42c7f1b fix icons in receive tab ThomasV 2019-03-11 15:34:43 +0100
  • ec97d623a5 force-close channel if unfulfilled htlc is close to cltv expiry ThomasV 2019-03-01 19:32:49 +0100
  • 4dc6c6c82e fix tests (follow up prev commit) ThomasV 2019-03-07 18:21:39 +0100
  • 8d77a7ecd8 save timestamps in htlc log ThomasV 2019-03-07 17:51:35 +0100
  • ecd9508233 follow-up previous commit ThomasV 2019-03-07 16:33:07 +0100
  • a7d37b72db factorize channel opening code into chan.open_with_first_pcp ThomasV 2019-03-07 16:15:06 +0100
  • c3f6351922 simplify points, remove side-effect in reestablish_channel ThomasV 2019-03-07 15:53:01 +0100
  • b5fd27c64c fix local/remote confusion in reestablish_channel ThomasV 2019-03-07 14:39:16 +0100
  • 82491ff083 do not duplicate ctn in channel log and config ThomasV 2019-03-07 12:44:22 +0100
  • 8d28188d24 lnhtlc: remove unused field in log ThomasV 2019-03-07 10:38:19 +0100
  • 51466930f2 reestablish_peers_and_channels: spawn tasks in for loop ThomasV 2019-03-07 10:25:39 +0100
  • 38f1436d78 post rebase fixes ThomasV 2019-03-06 16:13:28 +0100
  • b215d6c4b7 lnhtlc: rename ctnheights -> ctn ThomasV 2019-03-06 12:32:03 +0100
  • 02d013421a lnwatcher: store transactions as binary ThomasV 2019-03-06 10:51:24 +0100
  • d8e9a9a49e create parent class for sql databases ThomasV 2019-03-06 09:56:22 +0100
  • b861e2e955 lnwatcher: save sweepstore in sqlite database ThomasV 2019-03-05 17:28:24 +0100
  • bfdf0a7e88 start asyncio loop in test_lnrouter and test_lnpeer ThomasV 2019-03-06 06:17:52 +0100
  • 29afe52b4c sqlite: do not use scoped_session ThomasV 2019-03-06 06:16:52 +0100
  • cab0f7d9e0 add sqlalchemy to requirements ThomasV 2019-03-05 18:28:04 +0100
  • 436c313790 follow-up previous commit ThomasV 2019-03-05 17:37:01 +0100
  • 46aa5c1958 lnrouter: perform SQL requests in a separate thread. persist database. ThomasV 2019-03-05 12:20:56 +0100
  • 9f188c087c Flatten the structure of lnrouter, so that DBSession is not used outside of ChannelDB ThomasV 2019-03-05 11:22:00 +0100
  • 95a2174789 sqlite in lnrouter: lnpeer: introduce _gossip_loop for gossip handling separated from message handling Janus 2019-02-21 18:55:12 +0100
  • 3442e51fac sqlite in lnrouter: remove useless InDB suffix Janus 2019-02-20 21:06:37 +0100
  • 945e1dc4ee sqlite in lnrouter: request missing channel_announcements and node_announcements Janus 2019-02-20 21:03:53 +0100
  • d2d67f1fe1 sqlite in lnrouter: avoid exceptions on shutdown Janus 2019-02-12 19:34:14 +0100
  • dd7c4b3bab sqlite in lnrouter Janus 2019-02-01 20:59:59 +0100
  • d94e40d2be add 'txpos' field to lightning history items, in case two transactions have the same timestamp ThomasV 2019-03-01 14:54:41 +0100
  • 7a51f034e4 add future transactions to address synchronizer ThomasV 2019-03-01 12:34:38 +0100
  • 2994764ad8 history: add column for ln amount ThomasV 2019-03-01 09:01:15 +0100
  • 7a0e8bb343 fix amount_msat sign in get_history ThomasV 2019-03-01 05:29:42 +0100
  • 43d9e0460e follow-up previous commit ThomasV 2019-02-28 18:29:07 +0100
  • 8aa4ce0704 improve watchtower gui ThomasV 2019-02-28 06:08:58 +0100
  • 8b12f481da lightning: display forwarded payments as a single history item ThomasV 2019-02-27 11:42:09 +0100
  • 3e443535a2 lnchannel: pass reference to lnworker ThomasV 2019-02-27 10:51:40 +0100
  • a8e2f79563 lnchannel: save timestamp when we settle ThomasV 2019-02-27 10:10:39 +0100
  • ed4cecf19c ln_message: trigger notification instead of popup ThomasV 2019-02-27 09:53:13 +0100
  • ef7a59b4a9 lnchannel: save htlc preimages as soon as possible but horribly hacky SomberNight 2019-02-26 21:28:11 +0100
  • 7292da24e6 lnchannel: only consider payments finished when we revoke our old ctx SomberNight 2019-02-26 20:56:48 +0100
  • a565c500f6 lnhtlc: revert 0c4e7b856f8c96c4f0a33bf3e0d1c8fd8184bd36 SomberNight 2019-02-26 20:21:30 +0100
  • 5f164bcbe8 travis: don't build binaries on ln branch (also for appimage) SomberNight 2019-02-26 17:33:39 +0100
  • 7644c84e07 qt: update whole gui on every LN payment SomberNight 2019-02-26 17:30:53 +0100
  • 021f5d570e lnpeer: check that remote only sends commit_sig if there are changes SomberNight 2019-02-26 17:28:08 +0100
  • dfc2a35ae6 qt: handle LN invoices better in Send tab SomberNight 2019-02-26 16:34:06 +0100
  • 962628ac3d lnworker: minor clean-up re payment_completed SomberNight 2019-02-26 16:31:09 +0100
  • 11c0c0d5a1 lnhtlc: fix received_in_ctn (LOCAL->REMOTE) ThomasV 2019-02-26 13:53:33 +0100
  • 9206b6225b tmp fix for circular imports SomberNight 2019-02-20 22:04:51 +0100
  • 828f07a1ff qt request_list: disable editing existing items SomberNight 2019-02-20 20:05:28 +0100
  • f0b4d1ecce qt request_list: minor fix for context menu SomberNight 2019-02-20 19:50:08 +0100
  • 64b2844e81 qt request_list: fix changing between items SomberNight 2019-02-20 18:54:25 +0100
  • f618bb4a67 lnhtlc: handle settles like adds (asymmetrical across ctns) Janus 2019-02-14 21:42:37 +0100
  • 3d0b5fc80f more post-rebase fixups SomberNight 2019-02-14 18:59:58 +0100
  • 3a2ab149b9 lnchannel: add_htlc and receive_htlc now take and return UpdateAddHtlc SomberNight 2019-02-14 17:53:09 +0100
  • 62be0c481c lightning: Save invoices and preimages separately. Save preimages when forwarding ThomasV 2019-02-13 15:46:35 +0100
  • e475617b75 lnpeer: distinguish local and remote pending updates ThomasV 2019-02-13 10:59:22 +0100
  • 459f9aaee7 lnchannel: reformatting ThomasV 2019-02-12 11:27:01 +0100
  • 4228b926d4 lnpeer: send commitment after receiving updates ThomasV 2019-02-12 11:26:38 +0100
  • 5f516bac35 move lightning icon ThomasV 2019-02-12 09:35:28 +0100
  • 2976f50b8c lightning post-rebase fixups SomberNight 2019-02-11 22:23:30 +0100
  • 3d8e168a85 follow-up previous commit ThomasV 2019-02-11 17:22:59 +0100
  • 6eba22b5a8 lnpeer: replace asyncio.sleep with events ThomasV 2019-02-11 16:55:26 +0100
  • 86b33a5637 code refactoring: _maybe_fullfill_htlc, _maybe_forward_htlc ThomasV 2019-02-11 16:31:50 +0100
  • 5d26f51ad0 lnchannel: fix error message ThomasV 2019-02-11 15:58:57 +0100
  • a40207cbbb Refactor LNPeer in order to support HTLC forwarding: 1. Do not perform channel updates in coroutines, because they would get executed in random order. 2. After applying channel updates, wait only for the relevant commitment (local or remote) and not for both, because local and remote might be out of sync (BOLT 2). 3. When waiting for a commitment, wait until a given ctn has been reached, because a queue cannot be shared by several coroutines ThomasV 2019-02-04 12:37:30 +0100
  • 50b4f785a9 test_lnpeer: add names ThomasV 2019-02-10 19:17:04 +0100
  • 3dce65dc73 Rename lnchan, lnchannel_verifier, lnbase Auto-completions are a pain if files share a long prefix ThomasV 2019-02-09 10:29:33 +0100
  • 8274a963e6 lnworker: save outgoing invoice when initiating payment Janus 2019-02-08 20:32:06 +0100
  • 98e85fd16d qt: channel_details: prevent crash on stuck SENT htlc Janus 2019-02-08 18:23:21 +0100
  • 5f1feee331 move lightning message encoding to new lnmsg module Janus 2019-02-05 17:56:01 +0100
  • f5cee9ecf6 lightning: post-rebase fixes, read_QIcon and invalid import Janus 2019-02-07 18:15:34 +0100
  • d5006e83e7 test_forwarding: do not set HOME ThomasV 2019-02-04 12:34:24 +0100
  • 954e4c8892 lnbase: rename methods, fix tests ThomasV 2019-02-03 15:27:48 +0100