Commit Graph

615 Commits

Author SHA1 Message Date
SomberNight
6f292eceaf lnwatcher: naive code to sweep to_local from our ctx (will not wait for timelock yet) 2018-07-13 16:44:01 +02:00
SomberNight
8009253582 lnwatcher: sweep to_remote and to_local outputs if they close 2018-07-13 16:44:01 +02:00
ThomasV
debfff9482 move lnaddr.py to lib 2018-07-13 16:44:01 +02:00
Janus
93b8567de4 ln: store HTLCStateMachine in lnworker.channels 2018-07-13 16:44:01 +02:00
SomberNight
2e52899d6f improve Qt Receive tab for LN payment requests 2018-07-13 16:44:01 +02:00
ThomasV
0f66abc2fd Separate open_channel dialog. In open_channel_coroutine, use host and port from channel announcements 2018-07-13 16:44:01 +02:00
ThomasV
ca20741b84 lightning: single shared instance of Watcher, ChannelDB and PathFinder 2018-07-13 16:44:01 +02:00
ThomasV
683dce0410 channel watcher class 2018-07-13 16:44:01 +02:00
Janus
f2d1b00072 daemon: prevent json-rpc-pelix from suppressing stack traces of TypeErrors 2018-07-13 16:44:01 +02:00
Janus
e1fdb5afb4 ln: remove lnbase global flag 2018-07-13 16:44:01 +02:00
ThomasV
8524ea4f7e do not block GUI with open_channel 2018-07-13 16:44:01 +02:00
ThomasV
fe464113eb lightning: display remote balance in gui 2018-07-13 16:44:01 +02:00
ThomasV
f702bbac11 integrate channels_list with existing framework 2018-07-13 16:44:01 +02:00
ThomasV
eb9434ca48 request list: remove Type column 2018-07-13 16:44:01 +02:00
ThomasV
ed496dca4b qt: fix unit of lnaddr.amount 2018-07-13 16:44:01 +02:00
ThomasV
123f10054e lightning: connect send button 2018-07-13 16:44:01 +02:00
ThomasV
a388fb6ffd lightning GUI: use existing receive and send tabs with lightning invoices 2018-07-13 16:44:01 +02:00
Janus
0a67a824b6 ln: don't make invoice if peer can't possibly pay, append _sat to sat
parameters to avoid confusion
2018-07-13 16:44:01 +02:00
ThomasV
8580be30b2 lnworker: separate invoice creation from payment flow 2018-07-13 16:44:01 +02:00
Janus
4d34977359 ln: restore functionality 2018-07-13 16:44:01 +02:00
ThomasV
db75ff04ce fix amount in open_channel, add listchannels command 2018-07-13 16:44:01 +02:00
ThomasV
9598978cc4 move on_funding_locked to lnworker 2018-07-13 16:44:01 +02:00
ThomasV
68f409fd27 lightning: add payment methods to lnworker 2018-07-13 16:44:01 +02:00
ThomasV
a69e72b830 lightning: move lnworker code to its own module 2018-07-13 16:44:01 +02:00
ThomasV
3a9b15bc2d fix lnaddr.py following rebase 2018-07-13 16:44:01 +02:00
ThomasV
82953cb092 update lnbase after crypto refactoring 2018-07-13 16:44:01 +02:00
Janus
9ad0b7a878 lnbase: remove lnbase stub 2018-07-13 16:44:01 +02:00
ThomasV
275f26729f qt: fix password passed to open_channel, cleanup 2018-07-13 16:44:01 +02:00
Janus
e550e0241b kivy: port lightning ui to lnbase 2018-07-13 16:44:01 +02:00
Janus
5f3613d8b7 lightning: remove hub based approach, port qt gui to lnbase 2018-07-13 16:43:59 +02:00
SomberNight
1fc0b1378d calc short_channel_id after funding locked 2018-07-13 16:43:24 +02:00
SomberNight
a3e1e5dd47 minor clean-up of prev. util.xor_bytes 2018-07-13 16:43:24 +02:00
ThomasV
5ebc328ae6 lnbase: derive keys from wallet keystore 2018-07-13 16:43:24 +02:00
SomberNight
0a55216045 bitcoin.py: SCRIPT-related clean-up. transaction.py: construct_witness 2018-07-13 16:43:24 +02:00
SomberNight
91c5ddfad8 constants.py: Simnet inherits from Testnet 2018-07-13 16:43:24 +02:00
Janus
30abdbfda3 use same servers for simnet as for regtest 2018-07-13 16:43:24 +02:00
Janus
e6b22e9d56 avoid duplicating bech32 module 2018-07-13 16:43:24 +02:00
ThomasV
0edba56315 fix hash in make_offered_htlc 2018-07-13 16:43:24 +02:00
Janus
d3d23066e9 lnbase: offered htlc script construction 2018-07-13 16:43:24 +02:00
ThomasV
1ded2fd7b2 lightning: separate testing from main code 2018-07-13 16:43:24 +02:00
SomberNight
905998e87a implement script_num_to_hex. fix encoding of argument for CSV in make_commitment 2018-07-13 16:43:24 +02:00
ThomasV
5aba0b9538 lnbase: create unit test for commitment tx 2018-07-13 16:43:24 +02:00
Janus
802206bdf3 network: stop loop on loop thread 2018-07-13 16:43:24 +02:00
ThomasV
90bab35789 lnbase: initial commitment transaction 2018-07-13 16:43:24 +02:00
Janus
9949a8fd58 lightning: fix hub backend loop availability 2018-07-13 16:43:24 +02:00
Janus
afaef1e7ab network: do not acquire lightninglock for lnbase 2018-07-13 16:43:24 +02:00
Janus
c0a8fd811f lnbase: add lnbase_test 2018-07-13 16:43:24 +02:00
ThomasV
1c90479f55 lnbase: expose wallet object in LNWorker 2018-07-13 16:43:24 +02:00
ThomasV
4615b9134d fix asyncio loop 2018-07-13 16:43:24 +02:00
ThomasV
b64e97a68b integrate lnbase with network 2018-07-13 16:43:24 +02:00