Commit Graph

245 Commits

Author SHA1 Message Date
SomberNight
7b095158bf wallet: add get_label_for_address, and make get_label private
fixes https://github.com/spesmilo/electrum/issues/7919

In the past, when creating payment requests, we keyed them by on-chain address,
and set/saved the msg of the request as label for the address.
Many places in the code were calling wallet.get_label(addr) with the expectation that
relevant payment requests are found and their message/description (if any) is considered.

wallet.get_label(key) is now made private, and instead the explicit non-polymorphic
wallet.get_label_for_{address,rhash,txid} alternatives should be used.
2022-08-09 17:21:14 +02:00
SomberNight
c421bdaff4 (trivial) qml/qedaemon.py: add missing import 2022-08-04 21:52:22 +02:00
Sander van Grieken
3de498907c qml: delete_wallet and add checks for channels, balance, pending requests 2022-07-28 18:56:27 +02:00
Sander van Grieken
008805d97c qml: implement initial wallet from master key 2022-07-28 16:55:50 +02:00
Sander van Grieken
e719e70761 qml: fix icon paths 2022-07-28 11:53:20 +02:00
Sander van Grieken
5008cef491 qml: optimize imports 2022-07-28 16:53:05 +02:00
Sander van Grieken
ae1e7eea4c qml: make sure the auth_protect decorator finishes when closing Pin dialog without reject/accept 2022-07-26 20:40:27 +02:00
Sander van Grieken
6c21a0ec67 qml: create PasswordField control 2022-07-26 20:40:21 +02:00
Sander van Grieken
e9a1824a77 qml: parent channel open progress dialog to main.qml as it might live longer than OpenChannel 2022-07-26 20:40:13 +02:00
Sander van Grieken
4f3dc7a2cc qml: fixes 2022-07-26 18:08:32 +02:00
Sander van Grieken
509e0fcc07 qml: initial channel open progress dialog 2022-07-26 18:03:34 +02:00
Sander van Grieken
3b9c009e43 qml: include dialogs in back button navigation 2022-07-26 18:01:25 +02:00
Sander van Grieken
33bc35940f qml: move dialogs out of controls/ 2022-07-26 11:30:21 +02:00
Sander van Grieken
a27218dcb7 qml: copy/share the correct data, fix UI issue when no description 2022-07-26 11:30:16 +02:00
Sander van Grieken
83cb7aea9a qml: fix 2022-07-22 16:37:42 +02:00
Sander van Grieken
b7167c11cf qml: fix missing parens 2022-07-22 16:27:28 +02:00
Sander van Grieken
92b08c08e6 qml: fix issue with proxy eval 2022-07-22 16:05:39 +02:00
Sander van Grieken
b858336d5e qml: some fixes for gossip mode channel open. add kangaroo icon to channeldelegate 2022-07-22 15:53:10 +02:00
Sander van Grieken
93392b8917 qml: also show proxy in networkstatusindicator and a little gimmick when a fork is detected 2022-07-22 14:08:13 +02:00
Sander van Grieken
279b5a1b48 qml: let qenetwork monitor gossip events, start/stop gossip service on config change
add simple gossip feedback on NetworkStats page
2022-07-22 14:08:06 +02:00
Sander van Grieken
c90504986c qml: use custom combobox so we have more control over cropping and styling
enable lightning routing choice combobox
2022-07-22 14:08:00 +02:00
Sander van Grieken
18ee90c2b8 qml: destroy dialogs instantiated from Send on close 2022-07-22 10:14:01 +02:00
Sander van Grieken
623de58b7b qml: network status improvements
create NetworkStatusIndicator component
add forks/chaintips and lagging property to qenetwork
add synchronizing and synchronizing progress properties to qewallet
Note: new wallet synchronizing is not picked up in UI yet, missing
an is_up_to_date event at the start still..
2022-07-21 19:46:12 +02:00
Sander van Grieken
c0dc1a9eaa qml: separate proxy and server controls from wizardcontainer, so we can reuse them in
network settings later
2022-07-21 16:03:14 +02:00
Sander van Grieken
ccd182ec18 qml: qenetwork events don't need to be handled in qt thread
don't retrieve fee histogram from backend as it's passed in the event
2022-07-21 14:15:06 +02:00
Sander van Grieken
a970c0f78a qml: add initial bolt-11/bip-21 chooser in requestdialog
implement proper placement of icon over qr code
fix urlencoding in qr imageprovider
2022-07-21 12:56:55 +02:00
ThomasV
b5617ec0fd lnworker: get_channel_objects method to be used by GUI 2022-07-20 21:07:13 +02:00
Sander van Grieken
9147e84010 qml: finally! 2022-07-20 11:08:59 +02:00
Sander van Grieken
fd7bd64ce8 qml: delete WizardComponents, move into NewWalletWizard 2022-07-20 11:08:55 +02:00
Sander van Grieken
802246251f qml: visually dim channels in CLOSED and REDEEMED states, apply simple sort on channel state
to put channels in closed/redeemed state at bottom of list
2022-07-20 11:08:50 +02:00
Sander van Grieken
0cc22931d8 qml: don't expose WalletListModel as a declarative type 2022-07-20 11:08:46 +02:00
Sander van Grieken
8523fc134f qml: slip39 disabled for now 2022-07-20 11:08:40 +02:00
Sander van Grieken
6aded403b8 qml: pin lock after inactivity 2022-07-20 11:08:31 +02:00
Sander van Grieken
bbbb19eee4 qml: dedupe swap auth handling, fix fee values when no tx 2022-07-20 07:53:41 +02:00
Sander van Grieken
2ea1d88567 qml: use closebutton icon for label edit cancel
UI PIN entry dialog
2022-07-20 07:53:25 +02:00
SomberNight
d5b5f82b01 LN invoice: better handle unknown required featured bits in bolt11 invs
A user provided an invoice that requires feature bit 30. (That bit is not in the spec)
To test:
```
lnbc1p324a66pp5tundykxx3q5kztsr8x00eknpn2uwe3394cnky3j9a0fswm568wnsdp9facx2mj5d9kk2um5v9khqueqv3hkuct5d9hkucqzpgxq9z0rgqsp5l73jgfgctzc92juer5rk2mqcrkj8teng53dr9vfxj4n8lulu4jmq9q8pqqqssq4gacn859tpzz99hkusnh7m93d5ncpx3t4zns8ynca7akmljpl5vh504qjz7dqwewqjh4md7xagaz5wg85knvxywrhp0sp2t09yta7lcq3qs6fy

lntb1p324a66pp5tundykxx3q5kztsr8x00eknpn2uwe3394cnky3j9a0fswm568wnssp5l73jgfgctzc92juer5rk2mqcrkj8teng53dr9vfxj4n8lulu4jmqdp9facx2mj5d9kk2um5v9khqueqv3hkuct5d9hkuxq9z0rgq9q8pqqqssqdte0z9dy7ur7fagsk7r3mtfj6upq88xfylhufys87zqpamklcfgn2f3xeq3nlhvn3qy9tdgg42vq9eq99qz6rz6tzqezfhzuv6zsr5qp7cgel4
```
2022-07-15 18:00:33 +02:00
Sander van Grieken
894495aa92 qml: clean up 2022-07-12 19:07:19 +02:00
Sander van Grieken
63fed38305 qml: skip wallet password entry when single_password and password is known 2022-07-12 17:34:52 +02:00
Sander van Grieken
70cf44ccec qml: wip single password 2022-07-12 16:55:11 +02:00
Sander van Grieken
d0a9420c87 qml: fix initial focus wallet name in new wallet wizard 2022-07-12 14:01:04 +02:00
Sander van Grieken
f83c944f0e qml: properly set keystore password when creating new wallet 2022-07-12 14:00:53 +02:00
ThomasV
9ae0e5bffc remove lightning parameter from wallet.create_request 2022-07-11 13:52:13 +02:00
ThomasV
957174a039 all GUIs: show local and remote force-close options in a homogeneous way 2022-07-11 13:08:04 +02:00
SomberNight
bcbe69672e qml gui: fix flake8 "F821 undefined name" errors 2022-07-09 03:49:45 +02:00
Sander van Grieken
2c92174ee0 qewallet: fix useNotify signal emit 2022-07-08 16:27:18 +02:00
Sander van Grieken
2c656a0cf7 add excepthooks, hoping to force a backtrace log when qt5 SIGABRTs 2022-07-08 16:25:44 +02:00
Sander van Grieken
a5fc067481 take out routing hints retrieval for display for now. 2022-07-08 12:32:27 +02:00
Sander van Grieken
f5933da348 skip wallet files with leading dot 2022-07-08 11:10:15 +02:00
Sander van Grieken
0228169852 refactor to new event listener framework 2022-07-08 11:09:08 +02:00
Sander van Grieken
1f827f71d2 add info text for all remaining invoice states 2022-07-07 18:30:20 +02:00