ThomasV
90ce9f195b
Allow user to enable lightning in the GUI. Make it a per-wallet setting.
5 years ago
ThomasV
a201ed44df
Qt: add lightning button to status bar
5 years ago
ThomasV
0966edc637
fine-grained callbacks for lightning network dialog
5 years ago
ThomasV
fe550c6c73
payment log: show whether channel have been blacklisted
5 years ago
ThomasV
3897cf725d
move handle_error_code_from_failed_htlc to lnworker because it requires access to the network object
5 years ago
ThomasV
af4a3328f7
Qt: separate lightning and watchtower dialogs
5 years ago
ThomasV
f985c53f2f
fix #5695
5 years ago
ThomasV
16644ae00f
follow-up previous commit
5 years ago
ThomasV
8f86a15f92
improve payment log dialog
5 years ago
ThomasV
5377eb907c
follow-up dd0be1541e
5 years ago
SomberNight
2a604b1676
lnonion: get_failure_msg_from_onion_error might raise in python 3.7
this used to work in py3.6 but raises in py3.7 :(
(see https://bugs.python.org/issue34536 )
5 years ago
ThomasV
c37d08cec9
bump version number to 4.0.0a0 (alpha version)
5 years ago
ThomasV
dd0be1541e
Improve handling of lightning payment status:
- Move 'handle_error_code_from_failed_htlc' to channel_db,
and call it from pay_to_route, because it should not be
called when HTLCs are forwarded.
- Replace 'payment_received' and 'payment_status'
callbacks with 'invoice_status' and 'request_status'.
- Show payment error logs in the Qt GUI
- In the invoices list, show paid invoices for which
we still have the log.
5 years ago
ThomasV
d6d644190e
lnworker: return error reason in await_payment
5 years ago
ThomasV
0557738a6b
follow-up previous commit
5 years ago
ThomasV
c4ab1e6fad
Encapsulate lightning payment events:
- make LNWorker.pending_payments private
- public methods: payment_sent, payment_received, await_payment
5 years ago
ThomasV
638de63f13
lnworker: rename 'invoices' to 'payments' when they can be in both directions
5 years ago
ThomasV
788d54f9a6
remove another instance of lnworker accessed in lnchannel
5 years ago
ThomasV
8331f0049c
Remove lnpeer.payment_preimages:
- we can await lnworker.pending_payments instead, because the preimage is saved
- also, remove one instance of lnworker being accessed from lnchannel
5 years ago
ThomasV
b08cfac643
fix #5681
5 years ago
SomberNight
a51a2a7f8f
wallet: minor invoices fix
handle "lightning disabled & there are LN invoices in wallet" case
5 years ago
ThomasV
0dc90491b2
do not decode LN invoices in channel_details. fixes #5676
5 years ago
ThomasV
bcb10e6e53
remove redundant test from lnworker._pay, rename pay_to_route parameter to lnaddr
5 years ago
SomberNight
7c283f9cd2
fix tests: follow-up prev
5 years ago
SomberNight
8dabdf8bfb
qt send tab: handle invalid ln invoice; and ln invoice with ln disabled
fixes #5639
fixes #5662
5 years ago
ThomasV
1773bd6cd6
Merge pull request #5658 from vesellov/master
bug fix in electrum/wallet.py
5 years ago
Veselin Penev
4f82bf9269
bug fix in electrum/wallet.py
5 years ago
ThomasV
f3eeb8817e
Merge pull request #5652 from SomberNight/20190922_config_no_longer_singleton
config: no longer singleton. it is passed to Wallet.__init__
5 years ago
SomberNight
ec372adbb9
tests: fix test_find_path_for_payment. need to close sqlite connection
test was sometimes randomly failing
(always on Windows, as it's illegal to rm open files there)
5 years ago
SomberNight
04edad9984
config: no longer singleton. it is passed to Wallet.__init__
The few other cases that used SimpleConfig.get_instance() now
either get passed a config instance, or they try to get a reference
to something else that has a reference to a config.
(see lnsweep, qt/qrcodewidget, qt/qrtextedit)
5 years ago
ThomasV
d6c7dee547
follow-up previous commit
5 years ago
ThomasV
a35421ab71
qt settings: create services tab for both watchtower and payserver
5 years ago
ThomasV
f08e5541ae
Refactor invoices in lnworker.
- use InvoiceInfo (NamedTuple) for normal operations,
because lndecode operations can be very slow.
- all invoices/requests are stored in wallet
- invoice expiration detection is performed in wallet
- CLI commands: list_invoices, add_request, add_lightning_request
- revert 0062c6d695
because it forbids self-payments
5 years ago
SomberNight
0a395fefbc
qt send tab: use monospace font in "from" UTXO-selection section
5 years ago
ghost43
f0d69d1dba
Merge pull request #5432 from JeremyRand/rpc-from-coins
Add from_coins arg to payto/paytomany
5 years ago
JeremyRand
7b91cd9cf4
Add from_coins arg to payto/paytomany
Fixes https://github.com/spesmilo/electrum/issues/5430
5 years ago
SomberNight
cbc3e13e28
qt: fix export history
5 years ago
SomberNight
6a32187f01
qt: fix address dialog
(was showing full history, not just for addr)
5 years ago
SomberNight
a1d7d39f68
commands: add type hints for "wallet" param, and fix code rot found via
5 years ago
SomberNight
1bc73b3475
lnworker.sync_with_remote_watchtower: use proxy
5 years ago
SomberNight
c63209fa9a
lnworker: accessing self.channels needs lock
5 years ago
ThomasV
6c055e80ed
qt: show_info -> show_error
5 years ago
ThomasV
0062c6d695
lnworker: fix detection of already paid invoices
5 years ago
ThomasV
d6d5b99944
lnworker: fee_msat is expected for all entries in history
5 years ago
ThomasV
46346eacd7
settings: add vbox with stretch
5 years ago
ThomasV
d1a70bf1df
settings: move block explorer to 'Transactions' tab
5 years ago
SomberNight
e9a1c05d23
bitcoin.relayfee: minor clean-up
5 years ago
SomberNight
8c1adc2f50
fix dns issue on Windows
closes #5638
5 years ago
SomberNight
c81f5395af
Merge pull request #5440 from Coldcard/multisig
Add multisig support for Coldcard plugin
5 years ago
SomberNight
26ff7a6265
coldcard tx dialog: "export PSBT" button should not raise on foreign ks
tested trezor/coldcard mixed multisig and it worked; no reason to enforce
that the first keystore must be coldcard (order should not matter)
5 years ago