ThomasV
570167a2c4
restrict lightning to p2wpkh wallets
6 years ago
ThomasV
feb47b0a6f
Add lightning tx dialog (qt and kivy)
6 years ago
SomberNight
16626a3386
lnutil.split_host_port: fix for IPv6 connection string
6 years ago
ThomasV
4dc74870e1
Catch exceptions raised in LNWorker._pay_to_route
...
Reset payment status if an exception is caught.
Also, do not pass status to the 'invoice_status' network callback.
This fixes #5869 , #5870 , #5964 .
6 years ago
ThomasV
2dad87cbb4
Automate backups:
...
- backup wallet file on each channel creation
- on android, a backup password is entered in settings
- on desktop, the backup path is in settings
6 years ago
ThomasV
62eceeb573
Save and read lighting backups (Qt)
6 years ago
SomberNight
111ef9ebb1
follow-up fixes to storage-db separation
...
e1ce3aace7
6 years ago
ThomasV
a600873cf9
move wrapper definition outside of main_window class
6 years ago
ThomasV
e1ce3aace7
Separate db from storage
...
- storage is content-agnostic
- db and storage are passed to wallet contructor
6 years ago
SomberNight
f9960a5fe2
qt: don't clear send tab in broadcast_done
...
no longer needed as fields are already cleared when user clicks Save/Pay
6 years ago
ThomasV
8118bd1d72
use setEnabled() for Qt menu items: Network, Lightning, Watchtower
6 years ago
SomberNight
2880c26d87
qt broadcast tx: don't complain about being "offline" for partial tx
6 years ago
SomberNight
2e654c9440
qt main_window: trivial clean-up re is_onchain
6 years ago
SomberNight
e9645db182
qt send tab: show "Pay" button even in watch-only wallets
6 years ago
SomberNight
6d270364c6
qt paytoedit: properly handle multiple max ('!') outputs
6 years ago
SomberNight
5cfafff55d
qt main_window: rm require_fee_update (dead code)
6 years ago
SomberNight
b16164da4f
qt paytoedit: fixes for pay-to-many (when including "!")
6 years ago
SomberNight
94888739d3
try to fix "--offline" mode
6 years ago
SomberNight
29cf01524a
qt CPFP: handle empty fee field
...
fixes #5875
6 years ago
SomberNight
1d0aa4042a
fix paying bip70 payment request with Qt GUI
6 years ago
SomberNight
9b28f6df7b
wallet: encrypt storage by default
...
notably, now also in kivy
6 years ago
SomberNight
f2d42d79ba
qt: rm redundant line: ConfirmTxDialog.update_tx()
...
already called in ConfirmTxDialog.__init__
6 years ago
SomberNight
369d972aed
qt: handle exceptions when pressing "Max" button
...
fixes #5783
6 years ago
SomberNight
d2a8028cde
qt receive tab: show plain bitcoin address
6 years ago
SomberNight
20bbe85bce
receive requests: encode lightning invoices as uppercase -> smaller QRs
...
By encoding bolt11 invoices as uppercase text in QR codes,
we can use the alphanumeric mode, which results in non-negligibly smaller QR codes.
6 years ago
SomberNight
8dbbc21aff
wallet: better (outgoing) invoice "paid" detection
...
- no more passing around "invoice" in GUIs, invoice "paid" detection is now handled by wallet logic
- a tx can now pay for multiple invoices
- an invoice can now be paid by multiple txs (through partial payments)
- new data structure in storage: prevouts_by_scripthash
- type: scripthash -> set of (outpoint, value)
- also, storage upgrade to build this for existing wallets
6 years ago
SomberNight
ddeb176b3d
kivy: fix open_channel (API was changed)
6 years ago
SomberNight
557987d4eb
add/fix some open_channel related type hints
6 years ago
ThomasV
fd8236538a
Open lightning channels with partially signed tx.
...
Fixes #5379 .
6 years ago
ThomasV
06589df812
simplify add_transaction
6 years ago
ThomasV
fc85dcead6
follow-up previous commit
6 years ago
ThomasV
6c62fb03ac
fix #5733
6 years ago
ThomasV
61dfcba092
Refactor channel states:
...
- persisted states are saved
- state transitions are checked
- transient states are stored in channel.peer_state
- new channel states: 'PREOPENING', 'FUNDED' and 'REDEEMED'
- upgrade storage to version 21
6 years ago
SomberNight
6f246a83b3
qt coin selection: allow selecting an empty set
...
Using this, the user can force "bump fee" not to add new inputs.
closes #5719
6 years ago
SomberNight
1526bc9ccf
qt: consistently show tooltip when copying to clipboard
6 years ago
SomberNight
49284f716b
wallet: bump fee now supports coin selection
...
related: #5719
6 years ago
SomberNight
fec9677508
qt open channel: minor dialog fixes
6 years ago
SomberNight
d1c262def0
qt tx dialog: small clean-up in constructors
6 years ago
SomberNight
97056ae44d
qt send tab: subtract 2fa fee when clicking "spend max"
6 years ago
SomberNight
ca6654c102
qt send tab: don't allow paying multiple invoices that spend max '!'
6 years ago
SomberNight
aa3d817ef2
qt: clean-up imports
6 years ago
ThomasV
aa37979100
fix #5761
6 years ago
ThomasV
b9cf095e1a
fix #5761
6 years ago
ThomasV
47e0b4cd02
fix #5765
6 years ago
ThomasV
6b9971a466
fix #5767
6 years ago
ThomasV
a453189d37
fix #5766
6 years ago
ThomasV
e74f7e7b42
fix #5764
6 years ago
ThomasV
78813dcb7d
Pass make_tx function to ConfirmTxDialog
...
- allow 'spend max' when opening a channel (fixes #5698 )
- display amount minus fee when 'max' buttons are pressed
- estimate fee of channel funding using a template with dummy address
6 years ago
SomberNight
970bd4e95f
qt coin control: introduce second status bar
6 years ago
SomberNight
800c05b32f
qt addresses tab: fix "Spend from"
6 years ago