ThomasV
6d9ef29690
redo LNWorker pay:
...
- wait until htlc has been fulfilled
- raise if htlc is not fulfilled
- return boolean success
- try multiple paths in GUI
6 years ago
ThomasV
3c0df28c98
do not include 'force_closing' in channel states, because it is not part of the peer protocol
6 years ago
ThomasV
95376226e8
save lightning invoice descriptions as labels and allow user to edit them
6 years ago
SomberNight
e4ed15f683
fix tests
6 years ago
ThomasV
730be17aba
Use separate lightning nodes for gossip and channel operations.
6 years ago
ThomasV
12743bda93
remove test_require_data_loss_protect
6 years ago
ThomasV
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
6 years ago
ThomasV
4dc6c6c82e
fix tests (follow up prev commit)
6 years ago
ThomasV
bfdf0a7e88
start asyncio loop in test_lnrouter and test_lnpeer
6 years ago
Janus
95a2174789
sqlite in lnrouter: lnpeer: introduce _gossip_loop for gossip handling separated from message handling
6 years ago
Janus
dd7c4b3bab
sqlite in lnrouter
6 years ago
ThomasV
62be0c481c
lightning: Save invoices and preimages separately. Save preimages when forwarding
6 years ago
ThomasV
50b4f785a9
test_lnpeer: add names
6 years ago
ThomasV
3dce65dc73
Rename lnchan, lnchannel_verifier, lnbase
...
Auto-completions are a pain if files share a long prefix
6 years ago
Janus
8274a963e6
lnworker: save outgoing invoice when initiating payment
6 years ago
Janus
5f1feee331
move lightning message encoding to new lnmsg module
6 years ago
ThomasV
954e4c8892
lnbase: rename methods, fix tests
6 years ago
ThomasV
b5482e4470
create transport and perform handshake before creating Peer
6 years ago
ThomasV
2af178a586
Store boolean is_received in lightning invoices. Sort lightning history with timestamp. Minor fixes
6 years ago
Janus
4e3b2b5479
tests: update lnbase test to use 4-tuple for invoices
6 years ago
ThomasV
0a08ccc1c6
rename paying -> inflight
6 years ago
Janus
133e5ec8c3
use gossip_timestamp_filter instead of request_initial_sync
6 years ago
Janus
e3409d32ef
channel details with list of htlcs
6 years ago
Janus
ecac8f2880
tests/lnbase: stub on_channels_updated
6 years ago
Janus
1520338f37
fix ln tests
6 years ago
Janus
9cf7aa054d
call force_close_channel on LNWorker, not Peer
6 years ago
Janus
0ea87278fb
move force_close_channel to lnbase, test it, add FORCE_CLOSING state
6 years ago
Janus
7e76e82152
test_lnbase: add test that pays to another local electrum
6 years ago
Janus
85789d8a09
lnbase: mark initialized later, add tests, etc
...
- consistent node_id sorting
- require OPTION_DATA_LOSS_PROTECT and test it
6 years ago