ThomasV
4b29a46890
lnpeer: fix logging of 'will fullfill htlc'
2 years ago
ThomasV
6bacd65a80
payment_identifter: add FIXME
2 years ago
ThomasV
5cf320b2c7
Merge pull request #8462 from spesmilo/payment_identifiers2
...
Payment identifiers
2 years ago
Sander van Grieken
ae8c4f1281
payment_identifier: check if payment identifier is usable and enable/disable Send/Pay buttons
2 years ago
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
2 years ago
Sander van Grieken
7f766f6dfb
payment_identifiers: also match local contacts
2 years ago
Sander van Grieken
db6779bf04
qt: show send tab if payment identifier is passed on the cmdline
2 years ago
ThomasV
9b41bcf992
setFrozen: use light blue, black text is difficult to read on a blue background
2 years ago
Sander van Grieken
44f83b78e2
trezor: model T is 'T', not '2'
2 years ago
Sander van Grieken
be0ef5f961
trezor: allow PIN of length 50 for T1 firmware >=1.10.0 and TT firmware >=2.4.0 ( closes #8526 )
2 years ago
Sander van Grieken
c4e8869c1a
qml: add PIN auth to close channel operation.
2 years ago
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
2 years ago
Sander van Grieken
b6010aad0f
paytoedit: promote to QWidget and encapsulate QLineEdit vs QTextEdit juggling
2 years ago
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
2 years ago
SomberNight
0d29733419
qml/qedaemon.py: don't use daemon._wallets field directly
...
it's more robust to use the public methods
2 years ago
Sander van Grieken
eeda06e751
payment_identifier: fix error path for bip70
2 years ago
SomberNight
6b43eac6fd
lnonion: rm support for legacy (pre-TLV) onions
...
see https://github.com/lightning/bolts/pull/962
2 years ago
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
2 years ago
SomberNight
a66b0c6a12
lnaddr: rm some tests where feature bits do not make sense
...
Not all feature flags are supposed to go into the invoice.
2 years ago
SomberNight
8ef2495096
lnworker: use NamedTuple for received_mpp_htlcs. add/fix type hints
...
try to avoid long plain tuples
2 years ago
Sander van Grieken
81544fdaed
send_tab: simplify lock_recipient check
2 years ago
Sander van Grieken
30abcad999
payment_identifier: move amount_range into payment_identifier
2 years ago
Sander van Grieken
49dab82efa
send_tab: add spinner for network lookup indication
2 years ago
Sander van Grieken
febb2222d4
send_tab: simplify lock_max
2 years ago
Sander van Grieken
3df13b8ce4
qt: disallow save of LNURLp/LnAddr
2 years ago
Sander van Grieken
6b57743c3e
send_tab: add LNURLp range as tooltip on amount field
2 years ago
Sander van Grieken
fbb37d6fae
payment_identifier: add DOMAINLIKE payment identifier type, support domainlike -> openalias
2 years ago
Sander van Grieken
5cc7948eee
fix bip70 potentially not returning gui fields tuple
2 years ago
Sander van Grieken
0cbf403f8b
use NamedTuple for payment identifier gui fields
2 years ago
Sander van Grieken
3a1e5244b8
qt: fix enable/disable max button for openalias and restrict openalias to address only
2 years ago
Sander van Grieken
eed016bd7e
qt: move setting frozen styling to edit components themselves, fix re-enabling Clear button after finalize
2 years ago
Sander van Grieken
ca283a75d0
qml: exclude non-address SPK from supported payment identifiers
2 years ago
Sander van Grieken
74a1f38a8b
payment identifier types as enum
2 years ago
Sander van Grieken
fc141c0182
payment_identfier: refactor qml and tests
2 years ago
Sander van Grieken
915f66c0b8
payment_identifier: fix emaillike
...
qt: validate on pushback timer, buttons enable/disable, cleanup
2 years ago
Sander van Grieken
bde066f9ce
qt: refactor send_tab, paytoedit
2 years ago
Sander van Grieken
d9a43fa6ed
refactor last callback, signals. remove timered validate, don't add invalid address/amount to outputs
2 years ago
Sander van Grieken
b1925f8747
payment_identifier: refactor round_3 to need_merchant_notify/notify_merchant
2 years ago
Sander van Grieken
7601726d29
payment_identifier: refactor round_2 to need_finalize/finalize stage
2 years ago
Sander van Grieken
508d1038d3
payment_identifier: define states, refactor round_1 into resolve stage
2 years ago
Sander van Grieken
3000b83ab5
contacts: use specific Exception when alias not found
2 years ago
Sander van Grieken
a2ca191de1
pass wallet to PaymentIdentifier instead of config and contacts
2 years ago
Sander van Grieken
ac341d9565
whitespace, code style
2 years ago
Sander van Grieken
cbd388c297
fix flake8 issues (undefined references)
2 years ago
Sander van Grieken
1e725b6baa
break the cyclic dependency
2 years ago
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
2 years ago
Sander van Grieken
d83149f668
qml: add workaround for android predictive back gestures in History component
...
contributes to #8464
2 years ago
ThomasV
c4c2123b4b
fix bundled payments:
...
- prepayment should be accepted immediately once bundle is here
- mpp timeout all parts, but accept only current part
2 years ago
ThomasV
7caa6ccf57
test_lnpeer: fix variable names after rename
2 years ago
ThomasV
c4eb7d8321
lnworker: bundled payments
...
- htlcs of bundled payments must arrive in the same MPP_TIMEOUT
window, or they will be failed
- add correspoding tests
2 years ago