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
SomberNight
8075c0d02a
lnurl: add encode_lnurl() for console usage, fix tests
3 years ago
ThomasV
759eaf1cf5
json_db: register extra types outside of constructor
3 years ago
SomberNight
1ff4130804
contrib/docker_notes.md: add notes re debian apt mirror, and envvars
...
related https://github.com/spesmilo/electrum/issues/8496
3 years ago
SomberNight
922981e586
lnpeer: improve logging in maybe_forward_htlc
3 years ago
ThomasV
4177f8be82
lnworker.create_routes_for_payment: fix MPP detection
3 years ago
gruve-p
fbf41b582a
kivy: fix fx history rates
3 years ago
SomberNight
1e3f810667
update release notes for version 4.4.5
3 years ago
SomberNight
52817b220d
update locale
3 years ago
ThomasV
cc57648a0c
follow-up previous commit
3 years ago
ThomasV
39f8664402
make submarine swap server url configurable
3 years ago
ThomasV
606c51bc4e
follow-up previous commit
3 years ago
ThomasV
295734fc53
storage: encapsulate type conversions of stored objects using
...
decorators (instead of overloading JsonDB._convert_dict and
_convert_value)
- stored_in for elements of a StoreDict
- stored_as for singletons
- extra register methods are defined for key conversions
This commit was adapted from the jsonpatch branch
3 years ago
SomberNight
079c0ce5b2
Merge branch '202306_trezor_coinjoin'
3 years ago
SomberNight
eef9680743
trezor plugin: support external pre-signed inputs
...
closes https://github.com/spesmilo/electrum/issues/8324
3 years ago
SomberNight
4a211adcaa
trezor plugin: allow multiple change outputs
...
see https://github.com/spesmilo/electrum/issues/3920
3 years ago