Commit graph

10853 commits

Author SHA1 Message Date
Janus
cf4f0c5d3a add command to clear ln blacklist, prevent error in pay() from killing Peer 2019-08-20 09:03:10 +02:00
SomberNight
200b012e57 lnchannelverifier: some clean-up 2019-08-20 09:03:10 +02:00
SomberNight
c91fe27e7d fix lnwatcher: network triggers were renamed 2019-08-20 09:03:10 +02:00
SomberNight
d29191b010 rename LNChanAnnVerifier 2019-08-20 09:03:10 +02:00
SomberNight
fc0009206b fix prev 2019-08-20 09:03:10 +02:00
ThomasV
31b1243f25 lnbase: save_channel in revoke 2019-08-20 09:03:10 +02:00
ThomasV
8df569962d fix: broadcast_transaction from non network thread 2019-08-20 09:03:10 +02:00
ThomasV
180eb6d101 partial revert of df24fb00578309b5db27876769306196238ec3f2: process_message should not be async 2019-08-20 09:03:10 +02:00
ThomasV
dc0f03de99 channel verifier: fix request_chunk args 2019-08-20 09:03:10 +02:00
ThomasV
08448fd2f0 add lnworker in start_network 2019-08-20 09:03:10 +02:00
ThomasV
5c5982d9f7 lnwatcher: do not assume addr_sync.synchronizer 2019-08-20 09:03:10 +02:00
Janus
cc7ef49c43 lnhtlc: also check received htlcs when validating commitment sigs 2019-08-20 09:03:10 +02:00
Janus
224226f427 ln: cooperative close with remote peer initiating 2019-08-20 09:03:10 +02:00
Janus
ff902a55ee lnhtlc: don't settle htlc with HTLCStateMachine too early 2019-08-20 09:03:10 +02:00
Janus
d5d9270d0c lnhtlc: save logs and feeupdates 2019-08-20 09:03:10 +02:00
Janus
eca5545004 lnhtlc: don't throw away fee updates or htlcs
also add inject_fees debug command
2019-08-20 09:03:10 +02:00
Janus
02eca03486 lnhtlc: cleanup and save settled htlcs 2019-08-20 09:03:10 +02:00
Janus
6f5209ef85 lnhtlc: test that sent amount is received 2019-08-20 09:03:10 +02:00
Janus
261fefb6f3 lnwatcher rebased 2019-08-20 09:03:10 +02:00
Janus
3eabd70df5 lightning: post aiorpcx rebase fixup 2019-08-20 09:03:10 +02:00
SomberNight
7edba63341 remove our closed channels from channeldb. note some FIXMEs
payment were attempting to use the closed channels.
2019-08-20 09:03:10 +02:00
SomberNight
08d20ce187 lnbase: fix payments 2019-08-20 09:03:10 +02:00
SomberNight
1b030fca78 rebase follow-up: use namedtuples from master in new code (TxOutput, TxMinedStatus) 2019-08-20 09:03:10 +02:00
SomberNight
bab9f163f7 decode onion errors to failure message type 2019-08-20 09:03:10 +02:00
SomberNight
b85aea1541 qt: pay_lightning_invoice - attempt paying multiple times in case of failure 2019-08-20 09:03:10 +02:00
SomberNight
4d1785799b lnbase.pay: test if htlc can be added 2019-08-20 09:03:10 +02:00
SomberNight
9827cda9b1 qt send tab: hide fee fields when paying with lightning 2019-08-20 09:03:10 +02:00
SomberNight
2b4a436572 qt open channel dialog: allow pasting invoices to open a channel 2019-08-20 09:03:10 +02:00
SomberNight
cd893de837 lnrouter: use 'disable' flags from channel updates in path finding 2019-08-20 09:03:10 +02:00
SomberNight
15a6a83107 ln onchain fees: use 2 block ETAs with 150 s/b fallback 2019-08-20 09:03:10 +02:00
SomberNight
f3e5ba6ac1 more reliable peer and channel re-establishing 2019-08-20 09:03:10 +02:00
SomberNight
362a3a5a44 lnworker: fix confusion re what is in self.peers 2019-08-20 09:03:10 +02:00
SomberNight
9f79b7df63 don't connect to same peer multiple times 2019-08-20 09:03:10 +02:00
SomberNight
0b0bc89083 fix tests 2019-08-20 09:03:10 +02:00
SomberNight
c02cc9bb3b persist recent peers. implement dns seed bootstrapping.
dns seeds are currently disabled though, as they always seem to return mainnet nodes.
2019-08-20 09:03:10 +02:00
SomberNight
bc06ded4b9 persist nodes in channel_db on disk 2019-08-20 09:03:10 +02:00
SomberNight
5a05a92b3d move bolt-04 onion stuff to its own module 2019-08-20 09:03:10 +02:00
Janus
9247da5203 ln: share more code with control path for failed htlc, verify ctx'es 2019-08-20 09:03:10 +02:00
Janus
96a16adf30 ln: fix forwarded payment fees by removing separation between fee and amount in htlc objects 2019-08-20 09:03:10 +02:00
Janus
318d25e676 ln: verify received commitment transactions during payment 2019-08-20 09:03:10 +02:00
Janus
3c06b3cee1 ln: use START_INDEX instead of 2**48-1 2019-08-20 09:03:10 +02:00
Janus
a841fa3602 ln: save htlc signatures 2019-08-20 09:03:10 +02:00
Janus
9c442586b2 ln: avoid dust sends breaking channel, avoid inline functions 2019-08-20 09:03:10 +02:00
SomberNight
d0798c336f channeldb: allow injecting trusted edges 2019-08-20 09:03:10 +02:00
Janus
7f0568d83a special case receiving payment after fee update, fee update injector 2019-08-20 09:03:10 +02:00
SomberNight
a5b44d25b0 persist channel db on disk. verify channel gossip sigs. 2019-08-20 09:03:10 +02:00
SomberNight
c1d1826014 start using electrum protocol 1.4 2019-08-20 09:03:10 +02:00
Janus
935f11522d lightning.json with gossip_queries 2019-08-20 09:03:10 +02:00
SomberNight
8ffeb79d01 constants.py: remove duplicate Simnet declaration 2019-08-20 09:03:10 +02:00
Janus
9853cc6f31 ln: do not use mSAT accuracy for commitment fees 2019-08-20 09:03:10 +02:00