SomberNight
7498271927
follow-up prev: htlc direction madness
...
Sometimes direction was relative sometimes absolute... ?!
No. Make it always relative (to subject).
2020-03-28 16:29:39 +01:00
SomberNight
5b7ce98ab2
lnchannel: fix included_htlcs
2020-03-27 19:06:30 +01:00
ThomasV
bb35e330fb
do not show freeze/unfreeze channel options if channel is closed
2020-03-27 11:19:27 +01:00
SomberNight
7ac1cace7a
wallet_db.clear_history: now clears prevouts_by_scripthash too
...
(which is the logical thing to do, as it too will be rebuilt as part of
the history, and the parts of it that might not be present after the
rebuild is exactly what a call to "clear_history" is supposed to get rid of)
2020-03-27 02:28:43 +01:00
SomberNight
3ed6afce64
lnchannel: implement freezing channels (for receiving)
...
A bit weird, I know... :)
It allows for rebalancing our own channels! :P
2020-03-26 09:05:15 +01:00
SomberNight
79d202485e
lnworker: rename can_send to num_sats_can_send
2020-03-26 09:05:12 +01:00
SomberNight
5c8455d00b
lnchannel: when adding HTLCs, run checks for both directions
2020-03-26 09:05:08 +01:00
SomberNight
01207316aa
storage upgrade: move "htlc_minimum_msat" to base channel config
2020-03-26 09:05:04 +01:00
SomberNight
53c6fc8cf1
lnchannel: test for max htlc value (needs to be below protocol maximum)
2020-03-26 09:05:00 +01:00
SomberNight
777e350fae
lnchannel: partly fix available_to_spend
...
we were looking at inconsistent ctns
and we were looking at the wrong subject's ctx
all the FIXMEs and TODOs here will still warrant some attention.
(note that test_DesyncHTLCs was passing incorrectly:
the "assertRaises" was catching a different exception)
2020-03-26 09:04:55 +01:00
SomberNight
deb50e7ec3
lnchannel: implement "freezing" channels (for sending)
...
and expose it in Qt GUI
2020-03-26 03:32:44 +01:00
SomberNight
9c8d2be638
qt channels list: sort by short chan id by default
2020-03-26 02:54:50 +01:00
SomberNight
95979ba58d
qt channels list: make selection more in line with other tabs
...
(allow selecting none, and allow multi-select)
2020-03-26 02:54:21 +01:00
SomberNight
7488cc91cd
qt channels: expose long channel id (in ctx menu and details dlg)
...
Also add separators to context menu to more visible separate
close/delete actions from rest.
2020-03-26 01:20:41 +01:00
ghost43
1448bfe937
Merge pull request #6039 from interrupt00/document-how-to-disable-proxy
...
Document how to disable proxy
2020-03-17 22:27:13 +00:00
interrupt00
df700ca96a
Document how to disable proxy
2020-03-17 23:23:17 +01:00
SomberNight
cf5872d2c1
follow-up prev
2020-03-17 21:19:26 +01:00
SomberNight
2cc76fbbbd
lnworker: fix type error re pending_payments, and impl malformed htlcs
...
In old code, in lnpeer.htlc_switch(), "error" in lnworker.pending_payments
had incorrect type.
TODO: we need tests for payment failures...
2020-03-17 20:32:38 +01:00
SomberNight
9a70b79eea
follow-up prev: try to handle json db int key madness :/
2020-03-17 20:32:27 +01:00
SomberNight
b524460fdf
lnpeer: implement basic handling of "update_fail_malformed_htlc"
2020-03-17 20:31:50 +01:00
SomberNight
ea0981ebeb
lnutil.UpdateAddHtlc: use attrs instead of old-style namedtuple
2020-03-17 20:31:11 +01:00
ThomasV
444610452e
wallet_db: encapsulate type conversions with attr.s converter
2020-03-17 11:04:49 +01:00
ThomasV
df15042cee
Quantitative easing of lightning fees
2020-03-16 14:47:40 +01:00
ThomasV
d5469b7eb5
fix #6037
2020-03-16 14:31:22 +01:00
SomberNight
5e59d1a0ed
lnonion: use random starting bytes in Sphinx packet as in updated BOLT4
...
see https://github.com/lightningnetwork/lightning-rfc/pull/697
2020-03-16 04:37:52 +01:00
SomberNight
510399d3d2
wallet: dust limit calculation should round up (not down)
...
related to prev commit
closes #6035
2020-03-15 17:42:02 +01:00
SomberNight
a500db371d
wallet: put hard limit on minimum of relayfee: 1 sat/byte
...
(note that the dust limit is calculated based on the relayfee)
closes #6035
2020-03-15 01:26:26 +01:00
SomberNight
ec6be665d5
lnwatcher: unwatch deeply mined channels
...
reduces log spam generated by "REDEEMED" channels...
2020-03-14 04:44:01 +01:00
SomberNight
8897360a72
travis: change ppa for bitcoind
2020-03-14 01:48:31 +01:00
SomberNight
a7c02c770d
follow-up prev: network.interface might be None
2020-03-13 18:07:05 +01:00
ThomasV
133d74adfb
fee estimates: use median if auto-connect
2020-03-12 15:39:50 +01:00
ThomasV
5bac2fea98
Qt: improve channel details window
2020-03-12 12:40:50 +01:00
ThomasV
ffa3760a17
follow-up prev: rm decorator, preprocess channel_id for all messages
2020-03-11 17:02:44 +01:00
ThomasV
386d385389
lnpeer: channel_update decorator
2020-03-11 14:17:06 +01:00
ThomasV
fe2b40b83d
Fix #6021 : Do not transition channel state to CLOSED if tx is unconfirmed.
2020-03-11 11:49:53 +01:00
ThomasV
af457ea2ec
follow-up 46d8080c76
: own channels are no longer in channel_db
2020-03-11 10:26:07 +01:00
ThomasV
81dc2591b1
kivy: switch position/size of camera and clear buttons
2020-03-10 19:01:16 +01:00
SomberNight
e5e512df8c
appimage: update package in dockerfile
...
Ubuntu no longer serves old version
2020-03-10 18:20:46 +01:00
ThomasV
b6cb983733
lnworker.pay: run path finding in sep. thread (don't block evt loop)
2020-03-10 17:56:11 +01:00
ThomasV
df5acd1ea5
kivy: add delete button for invoices/requests
2020-03-10 17:30:08 +01:00
ThomasV
6c2ef176cc
kivy: show payment log details
2020-03-10 16:44:23 +01:00
ThomasV
d19fc56eb8
kivy: requests/invoices dialogs improvements
2020-03-10 16:03:34 +01:00
ThomasV
beac1c4ddc
channel_db: raise specific exception if database is not loaded when we try to find a route
2020-03-10 15:13:20 +01:00
ThomasV
e3019a7046
(minor) fix typo
2020-03-10 14:29:52 +01:00
ThomasV
2f31e9fa44
follow-up prev commit
2020-03-10 13:51:08 +01:00
ThomasV
3d69f3b0be
improve payment status callbacks:
...
- add 'computing route' status for lightning payments
- use separate callbacks for invoice status and payment popups
- show payment error and payment logs in kivy
2020-03-10 13:27:02 +01:00
SomberNight
5d4f8f3164
qt update checker: subclass QDialog instead of QWidget
...
this way "minimise to taskbar" and "fullscreen" buttons are not shown
2020-03-09 22:01:51 +01:00
SomberNight
c95c0dcb80
lnrouter: add comments about path-finding blocking the asyncio loop
2020-03-09 20:39:13 +01:00
ThomasV
05a191cc6a
(minor) simplification
2020-03-09 19:10:03 +01:00
ThomasV
dd0a93abd5
kivy: update screen in on_activate, remove dead code
2020-03-09 12:19:07 +01:00