SomberNight
6760c3f252
hw wallets: introduce HardwareHandlerBase
...
previously, client.handler was sometimes
- an InstallWizard
- a QtHandlerBase where win was an ElectrumWindow
- a QtHandlerBase where win was an InstallWizard
- a CmdLineHandler
That's just too much dynamic untyped undocumented polymorphism...
Now it will never be an InstallWizard (replaced with QtHandlerBase where win is an InstallWizard),
and now in all cases client.handler is an instance of HardwareHandlerBase, yay.
related: #6063
2020-03-31 14:40:25 +02:00
SomberNight
8e9b401c88
wizard: add a warning to multisig wallet creation to backup xpubs
2020-03-31 07:44:23 +02:00
JeremyRand
001ee25604
UTXOList: Split stretch_column out of __init__
...
Makes it easier to subclass UTXOList without code duplication.
2020-03-29 05:53:31 +00:00
ThomasV
bb35e330fb
do not show freeze/unfreeze channel options if channel is closed
2020-03-27 11:19:27 +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
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
ThomasV
5bac2fea98
Qt: improve channel details window
2020-03-12 12:40:50 +01:00
ThomasV
81dc2591b1
kivy: switch position/size of camera and clear buttons
2020-03-10 19:01:16 +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
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
ThomasV
dd0a93abd5
kivy: update screen in on_activate, remove dead code
2020-03-09 12:19:07 +01:00
ThomasV
c80aab7e20
kivy: align icons in password_dialog, use IconButton
2020-03-09 11:51:48 +01:00
ThomasV
47b6c2d87f
improve kivy password dialog:
...
- separate classes for pin code and password
- add file selector to initial screen
2020-03-09 11:13:05 +01:00
ThomasV
25626cf23b
follow-up previous commit
2020-03-07 23:18:08 +01:00
ThomasV
958898280e
follow-up previous commit
2020-03-07 23:06:30 +01:00
ThomasV
8b79e9fed1
kivy: remove dynamic screen loading.
...
The performance gain it brings is negligible,
and it causes object duplication, which makes
things difficult to debug.
2020-03-07 22:42:17 +01:00
ThomasV
b0ddd7dc27
kivy receive screen:
...
- change behavior of delete button
- screen must call parent's methods
2020-03-07 21:06:26 +01:00
ThomasV
19dcc5789f
invoices list: show 'batch pay' option only if all selected invoices can be paid
2020-03-07 17:02:52 +01:00
ThomasV
172b03129b
kivy: fix display of request messages
2020-03-07 15:46:20 +01:00
ThomasV
1e92307120
Qt history: Do not use monospace font for description column
2020-03-07 10:45:45 +01:00
ThomasV
ee01ca352f
update force-close warning message
2020-03-06 15:21:30 +01:00
ThomasV
b36e9a6451
Qt: add info about force closing
2020-03-06 13:35:05 +01:00
ThomasV
0d160cceea
Qt: test if lightinng is running
2020-03-06 11:23:26 +01:00
ThomasV
17a893441a
qt: add extra fields to copy submenus
2020-03-06 09:05:32 +01:00
ThomasV
e48c7d01cd
Qt: add 'View channel' to history menu, 'View funding transaction' to channel menu
2020-03-06 08:47:31 +01:00
ThomasV
c3c6b81857
kivy: show closing transaction in channel dialog
2020-03-06 06:49:46 +01:00
ThomasV
7c77d7c176
kivy: improve channel detaild dialog
2020-03-06 05:50:45 +01:00
ThomasV
a059fa0c1f
fix #6017
2020-03-06 04:27:03 +01:00
SomberNight
942e03e3ae
kivy README: add instructions re accessing internal storage
2020-03-05 19:01:55 +01:00
SomberNight
60ad5e6a52
kivy pw dialog: don't enforce min length for existing generic password
...
this allows opening short-password wallets on desktop
2020-03-05 18:09:17 +01:00
ThomasV
496de03869
(minor) typo
2020-03-05 14:43:10 +01:00
ThomasV
0c3565bd4d
kivy: show warning if request/invoice exceeds channel capacity
2020-03-05 14:30:01 +01:00
ThomasV
e362b4b94c
kivy invoices and requests: show most recent items first
2020-03-05 13:15:32 +01:00
ThomasV
69b58433bf
kivy: Show lightning balance. Remove 'unmatured', 'unconfirmed'
...
from info dialog, as this is visible in history.
2020-03-05 13:02:17 +01:00
ThomasV
c2f9c5fb1b
kivy: fix layout of addresses dialog
2020-03-05 12:06:30 +01:00
ThomasV
eadd5d58e8
kivy: improve open_channel dialog
2020-03-05 11:54:33 +01:00
ThomasV
bf4a9d7909
(minor) ButtonsWidget: add 10px offset because of scrollbar
2020-03-05 10:47:42 +01:00
ThomasV
8f3fcdd1a8
Fix detection of payments.
...
1. In lnhtlc, sent_in_ctn and failed_in_ctn need to look at the
remote ctx, and they need to be called when we receive a revocation,
not when we send one.
2. In lnchannel, we use 3 lnworker callbacks:
- payment sent/payment failed (called when we receive a revocation)
- payment received (called when we send a revocation)
3. Make revoke_current_commitment return a single value.
The second value was only used in tests, there is no need
to bloat the code with that
2020-03-05 07:03:09 +01:00
SomberNight
7962e17df6
invoices: deal with expiration of "0" mess
...
Internally, we've been using an expiration of 0 to mean "never expires".
For LN invoices, BOLT-11 does not specify what an expiration of 0 means.
Other clients seem to treat it as "0 seconds" (i.e. already expired).
This means there is no way to create a BOLT-11 invoice that "never" expires.
For LN invoices,
- we now treat an expiration of 0, , as "0 seconds",
- when creating an invoice, if the user selected never, we will put 100 years as expiration
2020-03-04 14:24:07 +01:00
ThomasV
c986e522bf
backup help text
2020-03-03 13:50:11 +01:00
ThomasV
9ed9fe7002
open channel dialog improvements
2020-03-03 13:06:37 +01:00
ThomasV
f67011d477
Qt: do not filter out paid invoices/requests. let user delete multiple items
2020-03-03 12:56:44 +01:00
ThomasV
a52ac0cc74
(minor) text change: 'Expires after'
2020-03-03 11:40:01 +01:00