Sander van Grieken
016b5eb743
qml: show private key in address details
2023-07-09 13:43:39 +02:00
Sander van Grieken
5f2fee5184
qml: strip whitespace of data pasted/scanned before processing
2023-07-09 11:56:21 +02:00
ThomasV
4b29a46890
lnpeer: fix logging of 'will fullfill htlc'
2023-07-09 10:06:46 +02:00
ThomasV
6bacd65a80
payment_identifter: add FIXME
2023-07-09 10:05:31 +02:00
ThomasV
5cf320b2c7
Merge pull request #8462 from spesmilo/payment_identifiers2
...
Payment identifiers
2023-07-09 10:02:14 +02:00
Sander van Grieken
ae8c4f1281
payment_identifier: check if payment identifier is usable and enable/disable Send/Pay buttons
2023-07-08 12:19:37 +02:00
Sander van Grieken
f980bd97b5
payment_identifier: factor out bip21 functions to bip21.py to break cyclic dependencies,
...
parse bolt11 only once, store invoice internally instead of bolt11 string
add is_onchain method to indicate if payment identifier can be paid onchain
2023-07-08 12:18:37 +02:00
Sander van Grieken
7f766f6dfb
payment_identifiers: also match local contacts
2023-07-07 22:54:46 +02:00
Sander van Grieken
db6779bf04
qt: show send tab if payment identifier is passed on the cmdline
2023-07-07 20:49:45 +02:00
ThomasV
9b41bcf992
setFrozen: use light blue, black text is difficult to read on a blue background
2023-07-07 17:05:08 +02:00
Sander van Grieken
44f83b78e2
trezor: model T is 'T', not '2'
2023-07-07 14:00:27 +02:00
Sander van Grieken
be0ef5f961
trezor: allow PIN of length 50 for T1 firmware >=1.10.0 and TT firmware >=2.4.0 ( closes #8526 )
2023-07-07 12:33:55 +02:00
Sander van Grieken
c4e8869c1a
qml: add PIN auth to close channel operation.
2023-07-04 14:05:10 +02:00
Sander van Grieken
5f8b8ce97e
qml: show channel backup and explanatory message before local force close, and let user confirm before doing the close operation
...
also show message dialog after close succeeded instead of just closing the channel close dialog
2023-07-04 12:51:26 +02:00
Sander van Grieken
b6010aad0f
paytoedit: promote to QWidget and encapsulate QLineEdit vs QTextEdit juggling
2023-07-03 16:33:07 +02:00
SomberNight
d65aa3369f
daemon: split standardize_path from daemon._wallets keying
...
- standardize_path is made more lenient: it no longer calls os.path.realpath,
as that was causing issues on Windows with some mounted drives
- daemon._wallets is still keyed on the old strict standardize_path, but
filesystem operations in WalletStorage use the new lenient standardize_path.
- daemon._wallets is strict to forbid opening the same logical file twice concurrently
- fs operations however work better on the non-resolved paths, so they use those
closes https://github.com/spesmilo/electrum/issues/8495
2023-06-30 11:15:16 +00:00
SomberNight
0d29733419
qml/qedaemon.py: don't use daemon._wallets field directly
...
it's more robust to use the public methods
2023-06-30 10:11:16 +00:00
Sander van Grieken
eeda06e751
payment_identifier: fix error path for bip70
2023-06-30 11:44:13 +02:00
SomberNight
6b43eac6fd
lnonion: rm support for legacy (pre-TLV) onions
...
see https://github.com/lightning/bolts/pull/962
2023-06-29 14:34:06 +00:00
SomberNight
fc6486ecdb
lnaddr: make payment_secret field mandatory, in both directions
...
we now require payment_secret both for sending and for receiving
(previously was optional for both)
see
https://github.com/lightning/bolts/pull/898
https://github.com/ACINQ/eclair/pull/1810
https://github.com/ElementsProject/lightning/pull/4646
note: payment_secret depends on var_onion_optin, so that becomes mandatory as well,
however this commit does not yet remove the ability of creating legacy onions
2023-06-29 14:34:02 +00:00
SomberNight
a66b0c6a12
lnaddr: rm some tests where feature bits do not make sense
...
Not all feature flags are supposed to go into the invoice.
2023-06-29 13:55:15 +00:00
SomberNight
8ef2495096
lnworker: use NamedTuple for received_mpp_htlcs. add/fix type hints
...
try to avoid long plain tuples
2023-06-29 13:48:02 +00:00
Sander van Grieken
81544fdaed
send_tab: simplify lock_recipient check
2023-06-28 16:49:28 +02:00
Sander van Grieken
30abcad999
payment_identifier: move amount_range into payment_identifier
2023-06-28 16:49:28 +02:00
Sander van Grieken
49dab82efa
send_tab: add spinner for network lookup indication
2023-06-28 16:49:28 +02:00
Sander van Grieken
febb2222d4
send_tab: simplify lock_max
2023-06-28 16:49:28 +02:00
Sander van Grieken
3df13b8ce4
qt: disallow save of LNURLp/LnAddr
2023-06-28 16:49:28 +02:00
Sander van Grieken
6b57743c3e
send_tab: add LNURLp range as tooltip on amount field
2023-06-28 16:49:28 +02:00
Sander van Grieken
fbb37d6fae
payment_identifier: add DOMAINLIKE payment identifier type, support domainlike -> openalias
2023-06-28 16:49:28 +02:00
Sander van Grieken
5cc7948eee
fix bip70 potentially not returning gui fields tuple
2023-06-28 16:49:28 +02:00
Sander van Grieken
0cbf403f8b
use NamedTuple for payment identifier gui fields
2023-06-28 16:49:28 +02:00
Sander van Grieken
3a1e5244b8
qt: fix enable/disable max button for openalias and restrict openalias to address only
2023-06-28 16:49:28 +02:00
Sander van Grieken
eed016bd7e
qt: move setting frozen styling to edit components themselves, fix re-enabling Clear button after finalize
2023-06-28 16:49:28 +02:00
Sander van Grieken
ca283a75d0
qml: exclude non-address SPK from supported payment identifiers
2023-06-28 16:49:28 +02:00
Sander van Grieken
74a1f38a8b
payment identifier types as enum
2023-06-28 16:49:28 +02:00
Sander van Grieken
fc141c0182
payment_identfier: refactor qml and tests
2023-06-28 16:49:28 +02:00
Sander van Grieken
915f66c0b8
payment_identifier: fix emaillike
...
qt: validate on pushback timer, buttons enable/disable, cleanup
2023-06-28 16:49:28 +02:00
Sander van Grieken
bde066f9ce
qt: refactor send_tab, paytoedit
2023-06-28 16:49:28 +02:00
Sander van Grieken
d9a43fa6ed
refactor last callback, signals. remove timered validate, don't add invalid address/amount to outputs
2023-06-28 16:49:28 +02:00
Sander van Grieken
b1925f8747
payment_identifier: refactor round_3 to need_merchant_notify/notify_merchant
2023-06-28 16:49:28 +02:00
Sander van Grieken
7601726d29
payment_identifier: refactor round_2 to need_finalize/finalize stage
2023-06-28 16:49:28 +02:00
Sander van Grieken
508d1038d3
payment_identifier: define states, refactor round_1 into resolve stage
2023-06-28 16:49:28 +02:00
Sander van Grieken
3000b83ab5
contacts: use specific Exception when alias not found
2023-06-28 16:49:28 +02:00
Sander van Grieken
a2ca191de1
pass wallet to PaymentIdentifier instead of config and contacts
2023-06-28 16:49:28 +02:00
Sander van Grieken
ac341d9565
whitespace, code style
2023-06-28 16:49:28 +02:00
Sander van Grieken
cbd388c297
fix flake8 issues (undefined references)
2023-06-28 16:49:28 +02:00
Sander van Grieken
1e725b6baa
break the cyclic dependency
2023-06-28 16:49:28 +02:00
ThomasV
15eb765eac
payment_identifiers:
...
- this separates GUI from core handling
- the PaymentIdentifier class handles network requests
- the GUI is agnostic about the type of PI
2023-06-28 16:49:28 +02:00
Sander van Grieken
d83149f668
qml: add workaround for android predictive back gestures in History component
...
contributes to #8464
2023-06-28 16:14:05 +02:00
ThomasV
c4c2123b4b
fix bundled payments:
...
- prepayment should be accepted immediately once bundle is here
- mpp timeout all parts, but accept only current part
2023-06-28 14:51:09 +02:00