Janus
f6ee7adabd
Kivy: Lightning support in Receive tab
2018-11-13 21:17:54 +01:00
Janus
c64c9b5d0b
tests/lnbase: stub on_channels_updated
2018-11-12 18:15:48 +01:00
Janus
6e69c9ed1a
Kivy: open channel dialog
2018-11-12 18:02:15 +01:00
ThomasV
9c4fa7b251
follow-up prev commit
2018-11-12 12:25:21 +01:00
ThomasV
0ebadab574
lightning: do not handle more than one fee update at a time
2018-11-12 11:55:13 +01:00
Janus
a6601dc0d7
Kivy: Support Lightning in Send tab
2018-11-08 11:38:18 +01:00
Janus
bf4797edbe
kivy: restore channel list to working state, add [force-]closing functionality
2018-11-07 19:41:30 +01:00
Janus
cedf1b5433
fix ln tests
2018-11-07 18:00:45 +01:00
SomberNight
ce1ff477d0
lnutil: restructure channel config namedtuples (local/remote config)
2018-11-07 17:54:46 +01:00
Janus
405ed49028
add command for listing invoices and their progress, fix list_channels
2018-11-07 17:44:49 +01:00
Janus
5d7acf993d
function that returns map from commitment number to list of HTLCs
2018-11-05 20:31:06 +01:00
SomberNight
dbb482a512
after rebase fixes
2018-11-05 20:29:44 +01:00
Janus
06f24fd11a
do not co-op close channels with pending htlcs
2018-11-05 20:24:17 +01:00
Janus
481b6c231a
call force_close_channel on LNWorker, not Peer
2018-11-05 20:24:16 +01:00
Janus
a774f3339e
avoid leaving FORCE_CLOSING state, rebroadcast closing tx if reorged out
2018-11-05 20:24:16 +01:00
Janus
266d9462f3
move force_close_channel to lnbase, test it, add FORCE_CLOSING state
2018-11-05 20:24:15 +01:00
Janus
f61e9107c3
lnwatcher: do not get_transaction before broadcast
...
this workaround was inserted to avoid losing the interface
when rebroadcasting a transaction already in the mempool
many times. but since the network should make sure we always
have a interface ready, and this problem shouldn't happen on
mainnet, remove the workaround
2018-11-05 20:24:15 +01:00
Janus
a9412041ca
lnwatcher: more detailed logging, support notifying test suite of txs
2018-11-05 20:24:14 +01:00
Janus
1650044786
lnwatcher: ensure probable spendability of prev_tx
...
previously, we would try to publish the second_stage
even if we couldn't, because a conflicting transaction
was published (like an htlc success when we close with
htlcs pending with a 1-hop payment and an online
counterparty)
2018-11-05 20:24:14 +01:00
Janus
f51acc5aae
use IntEnum for TxMinedDepth
2018-11-05 20:24:13 +01:00
ThomasV
d74160bdca
watchtower: add watch_channel rpc
2018-11-05 20:24:13 +01:00
Janus
09a948c448
lnchan: use NamedTuple for logs instead of dict with static keys (adds, locked_in, settles, fails)
2018-11-05 20:24:13 +01:00
Janus
cbc0422af1
lnchan: make sign_next_commitment revert state
2018-11-05 20:24:12 +01:00
Janus
0a8d836d13
remove incorrect docstrings, attribute docstring sources where applicable
2018-11-05 20:24:12 +01:00
SomberNight
f411183158
after rebase clean-up
2018-11-05 20:24:11 +01:00
Janus
751942442e
test_lnbase: add test that pays to another local electrum
2018-11-05 20:24:11 +01:00
SomberNight
16a9aa322f
lnbase: more type annotations, and minor fix
2018-11-05 20:24:10 +01:00
SomberNight
0b2993cd06
add licence headers to more files
2018-11-05 20:24:10 +01:00
Janus
d8de048003
add lnd copyright boilerplate to lnchan, test_lnchan
2018-11-05 20:24:09 +01:00
Janus
3efd8dedb6
lnbase: mark initialized later, add tests, etc
...
- consistent node_id sorting
- require OPTION_DATA_LOSS_PROTECT and test it
2018-11-05 20:24:09 +01:00
Janus
3866df6650
lnworker: fix listchannels
2018-11-05 20:24:09 +01:00
Janus
838b79f7b8
lnbase: do not assert only one htlc in commitment
2018-11-05 20:24:08 +01:00
Janus
1dc9e062df
lightning channels reserves: use pretty balance in Qt, fix bugs, add tests
2018-11-05 20:24:08 +01:00
ThomasV
f8fd131d01
use WaitingDialog to close channels
2018-11-05 20:24:07 +01:00
ThomasV
b38e25844b
add close_channel method to peer
2018-11-05 20:24:07 +01:00
ThomasV
82e1c5228a
fix typo
2018-11-05 20:24:06 +01:00
ThomasV
61cbe573a5
parse invoices with lightning: prefix
2018-11-05 20:24:06 +01:00
ThomasV
304e4fd537
lnbase: self.channel_reestablished is not a queue
2018-11-05 20:24:05 +01:00
Janus
36d03f4762
lightning channel reserves
2018-11-05 20:24:05 +01:00
SomberNight
53027d6b2f
lnworker: store invoices based on payment_hash
2018-11-05 20:24:04 +01:00
ThomasV
0890a2beaa
lnbase: call save_channel in revoke and receive_revoke
2018-11-05 20:24:04 +01:00
Janus
94b0631ccc
fix co-op close
2018-11-05 20:24:04 +01:00
Janus
c34ce01f3b
follow-up redeeming of local outgoing htlc outputs, fix tests
2018-11-05 20:24:03 +01:00
SomberNight
5ce88014c8
lnutil.make_funding_input: don't return payment pubkeys
...
order depends on who is initiator anyway
2018-11-05 20:24:03 +01:00
Janus
3afb9c8ca3
redeem htlc outputs of our local commitment transaction back to wallet
2018-11-05 20:24:02 +01:00
SomberNight
5c8b5a0b7c
some more type annotations that needed conditional imports
2018-11-05 20:24:02 +01:00
SomberNight
c60715d55c
lnchan: set diagnostic_name
...
previously was only set for tests
2018-11-05 20:24:01 +01:00
SomberNight
9c7140f383
better handling of channel updates for private channels
2018-11-05 20:24:01 +01:00
SomberNight
d83b4a8c88
lnrouter: can_pay for own channels should use amount_to_forward
2018-11-05 20:24:00 +01:00
SomberNight
3f53384309
lnrouter: run Dijkstra in reverse direction
2018-11-05 20:24:00 +01:00