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
b6010aad0f
paytoedit: promote to QWidget and encapsulate QLineEdit vs QTextEdit juggling
2 years ago
Sander van Grieken
eeda06e751
payment_identifier: fix error path for bip70
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
ThomasV
97768a13b9
follow-up previous commit
3 years ago
ThomasV
b8b36c7c30
follow-up prev: fix flake8 test
3 years ago
ThomasV
411098f293
move methods from wallet_db to json_db
...
the goal of this commit is to call JsonDB.__init__ with data,
not an empty dict
3 years ago
SomberNight
c85139009a
qt chan details dlg: make some more labels selectable
3 years ago
SomberNight
e2ee79c378
lnaddr: add LnAddr.to_debug_json() method
3 years ago
SomberNight
a3b0e97c88
lnaddr: make min_cltv logic less error-prone
...
round-tripping the value behaved unexpectedly before...
3 years ago
SomberNight
f7a8e55a6a
lnworker: (trivial) clean-up which bolt-09 feature flags we set
3 years ago
SomberNight
ca93af2b8a
ln: some clean-up for option_scid_alias
...
- qt chan details dlg: show both local and remote aliases
- lnchannel: more descriptive names, add clarification in doctstrings,
and also save the "local_scid_alias" in the wallet file (to remember if
we sent it)
- lnpeer:
- resend channel_ready msg after reestablish, to upgrade old existing channels
to having local_scid_alias
- forwarding bugfix, to follow BOLT-04:
> - if it returns a `channel_update`:
> - MUST set `short_channel_id` to the `short_channel_id` used by the incoming onion.
3 years ago
SomberNight
888291a8f8
qml: fix lnurl-pay when config.BTC_AMOUNTS_ADD_THOUSANDS_SEP is True
...
when paying an lnurl-pay that provides an amount interval,
the amount field is editable by the user and it expects no spaces
3 years ago