Commit graph

10018 commits

Author SHA1 Message Date
SomberNight
eef8cd0d20
decode onion errors to failure message type 2018-11-05 20:16:08 +01:00
SomberNight
dea0c7ebbf
qt: pay_lightning_invoice - attempt paying multiple times in case of failure 2018-11-05 20:16:07 +01:00
SomberNight
85407414ed
lnbase.pay: test if htlc can be added 2018-11-05 20:16:07 +01:00
SomberNight
284b2cc536
qt send tab: hide fee fields when paying with lightning 2018-11-05 20:16:06 +01:00
SomberNight
595e7cb1b4
qt open channel dialog: allow pasting invoices to open a channel 2018-11-05 20:16:06 +01:00
SomberNight
d93495b9fa
lnrouter: use 'disable' flags from channel updates in path finding 2018-11-05 20:16:05 +01:00
SomberNight
36ce46ed70
ln onchain fees: use 2 block ETAs with 150 s/b fallback 2018-11-05 20:16:05 +01:00
SomberNight
985d15dc8e
more reliable peer and channel re-establishing 2018-11-05 20:16:04 +01:00
SomberNight
a56eb29880
lnworker: fix confusion re what is in self.peers 2018-11-05 20:16:04 +01:00
SomberNight
3447d8504b
don't connect to same peer multiple times 2018-11-05 20:16:04 +01:00
SomberNight
fdc71e47f9
fix tests 2018-11-05 20:16:03 +01:00
SomberNight
a16388dbc8
persist recent peers. implement dns seed bootstrapping.
dns seeds are currently disabled though, as they always seem to return mainnet nodes.
2018-11-05 20:16:03 +01:00
SomberNight
4537f2bcd5
persist nodes in channel_db on disk 2018-11-05 20:15:57 +01:00
SomberNight
766297da31
move bolt-04 onion stuff to its own module 2018-11-05 20:08:49 +01:00
Janus
add2ef5d87
ln: share more code with control path for failed htlc, verify ctx'es 2018-11-05 20:08:49 +01:00
Janus
5011578790
ln: fix forwarded payment fees by removing separation between fee and amount in htlc objects 2018-11-05 20:08:48 +01:00
Janus
9718565082
ln: verify received commitment transactions during payment 2018-11-05 20:08:48 +01:00
Janus
fb4afb2383
ln: use START_INDEX instead of 2**48-1 2018-11-05 20:08:47 +01:00
Janus
d4c00ee986
ln: save htlc signatures 2018-11-05 20:08:47 +01:00
Janus
bedf755565
ln: avoid dust sends breaking channel, avoid inline functions 2018-11-05 20:08:46 +01:00
SomberNight
8f67b93e25
channeldb: allow injecting trusted edges 2018-11-05 20:08:46 +01:00
Janus
67c69d7042
special case receiving payment after fee update, fee update injector 2018-11-05 20:08:46 +01:00
SomberNight
6742654681
persist channel db on disk. verify channel gossip sigs. 2018-11-05 20:07:42 +01:00
SomberNight
80bbd9edc3
start using electrum protocol 1.4 2018-11-05 20:06:01 +01:00
Janus
c443231f29
lightning.json with gossip_queries 2018-11-05 20:06:01 +01:00
SomberNight
e79130019e
constants.py: remove duplicate Simnet declaration 2018-11-05 20:06:00 +01:00
Janus
593552b3cb
ln: do not use mSAT accuracy for commitment fees 2018-11-05 20:06:00 +01:00
Janus
cd4d8e0598
ln: fundee must commit to fee first 2018-11-05 20:06:00 +01:00
SomberNight
ce9bf7c5f1
bolt-08 handshake must use ephemeral key 2018-11-05 20:05:59 +01:00
SomberNight
ef39459e90
avoid crash if don't have peer for open channel 2018-11-05 20:05:58 +01:00
Janus
d797f4d146
use correct dust limit for their to_local/to_remote outputs 2018-11-05 20:05:58 +01:00
Janus
a058ed3100
ln: initialize genesis with object, fix method name typo, use depth_target_to_fee 2018-11-05 20:05:58 +01:00
ThomasV
f6fcda7f85
lnwatcher: pass address instead of wallet reference 2018-11-05 20:05:57 +01:00
ThomasV
67174b9814
encapsulate funding_address_for_channel 2018-11-05 20:05:57 +01:00
SomberNight
037290a9a8
allow paying invoice without amount. min feerate 253 sat/kw. 2018-11-05 20:05:56 +01:00
Janus
f3bd710bbf
lnbase: fee handling: add todo since depth_to_fee is inappropriate 2018-11-05 20:05:56 +01:00
ThomasV
adbd3e9883
asyncio: do not set event loop from wallet 2018-11-05 20:05:55 +01:00
Janus
fc147242e1
ln: fix race in on_network_update 2018-11-05 20:05:55 +01:00
Janus
05300a01e6
ln: send update_fee on fee change, handle nodes without data_protect 2018-11-05 20:05:54 +01:00
Janus
95fd640a31
lnrouter: ignore duplicate channel announcement 2018-11-05 20:05:54 +01:00
ThomasV
6c901b3e9a
remove unused method 2018-11-05 20:05:53 +01:00
SomberNight
309331a936
ChannelDB: print_graph 2018-11-05 20:05:53 +01:00
SomberNight
8c24e2101d
qt channels list: update channel when detecting close 2018-11-05 20:05:52 +01:00
SomberNight
5538762673
qt/channels list: show error in dialog 2018-11-05 20:05:52 +01:00
SomberNight
f99de79da1
lnwatcher improvements
- only try sweeping csv-locked to_local if past timelock
- check if outputs are already spent
- no need to keep watching channels for which all outputs are spent and mined deep
2018-11-05 20:05:51 +01:00
Janus
d9208f3245
move channel_state into HTLCStateMachine 2018-11-05 20:05:51 +01:00
ThomasV
c0c7b92bff
follow-up a7e5b9421c014fc0be72696837cb9d77519c5e03 2018-11-05 20:05:50 +01:00
ThomasV
73d0a3baf6
lightning: improve request tab layout 2018-11-05 20:05:50 +01:00
ThomasV
010740c060
draw qrcode with fixed framesize 2018-11-05 20:05:49 +01:00
ThomasV
8af31ad045
follow-up c505a9b8b498fa661a09fc9bc02e4b71e0f76a68 2018-11-05 20:05:49 +01:00