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
ThomasV
6c231e1d07
test_lnpeer: factorize code into TestPeer._activate_trampoline
2 years ago
ThomasV
24296ca7c0
test_lnpeer: follow-up 21e06b7065
2 years ago
ThomasV
14efb401d6
test_lnpeer: refactor tests for hold invoices
2 years ago
ThomasV
1acf426fa9
lnworker: add support for hold invoices
...
(invoices for which we do not have the preimage)
Callbacks and timeouts are registered with lnworker. If the
preimage is not known after the timeout has expired, the payment
is failed with MPP_TIMEOUT.
3 years ago
ThomasV
2b1199647e
bitcoin.construct_script: add values parameter
...
(to be used in swapserver plugin)
3 years ago
ThomasV
df5b98792e
lnworker: always call check_received_htlc (no only for MPP)
...
This will be a generic placeholder to decide if we need to wait
before settling a payment (to be used with hold invoices and
bundled payments)
3 years ago
ThomasV
21e06b7065
lnpeer: new payment secret, derived without preimage.
...
(this is needed for hold invoices)
3 years ago