SomberNight
49a2dbb021
kivy: receive to ln invoice should be disabled if lightning is disabled
2019-09-16 16:19:19 +02:00
SomberNight
ff9cc4d292
kivy: fix "use change addresses" setting (previously ignored, always on)
...
this config setting is stored in the WalletStorage unlike most others
closes #5643
2019-09-16 16:01:52 +02:00
SomberNight
0b87ce426f
minor qt send tab fixes. notably 'send max' was broken
...
follow-up aaed594772
2019-09-16 02:54:32 +02:00
SomberNight
5e04f084b7
qt wizard: follow-up prev; simplify
2019-09-14 16:25:35 +02:00
SomberNight
f44f7d60ab
qt wizard: still show selector window if storage.__init__ raises WFE
...
(WalletFileException; e.g. if storage version is from the future)
2019-09-14 16:22:06 +02:00
SomberNight
c7346c1eb8
kivy: fix paying onchain invoices
...
when pasting a new invoice and paying it
Traceback (most recent call last):
File "/home/user/wspace/electrum/electrum/gui/kivy/uix/screens.py", line 358, in _do_send_onchain
tx = self.app.wallet.make_unsigned_transaction(coins, outputs, None)
File "/home/user/wspace/electrum/electrum/wallet.py", line 849, in make_unsigned_transaction
if o.type == TYPE_ADDRESS:
AttributeError: 'tuple' object has no attribute 'type'
when loading back a saved invoice
Traceback (most recent call last):
File "/home/user/wspace/electrum/electrum/gui/kivy/uix/screens.py", line 358, in _do_send_onchain
tx = self.app.wallet.make_unsigned_transaction(coins, outputs, None)
File "/home/user/wspace/electrum/electrum/wallet.py", line 849, in make_unsigned_transaction
if o.type == TYPE_ADDRESS:
AttributeError: 'list' object has no attribute 'type'
2019-09-13 15:00:34 +02:00
SomberNight
1f305bba39
qt history tab txn drag and drop: fix #5635
2019-09-13 14:12:40 +02:00
ThomasV
1ecbafb920
add SSL context to watchtower server
2019-09-13 12:26:27 +02:00
ThomasV
26efef9e06
move lightning settings to settings dialog
2019-09-13 11:55:05 +02:00
ThomasV
aaed594772
Simplify invoices and requests.
...
- We need only two types: PR_TYPE_ONCHAIN and PR_TYPE_LN
- BIP70 is no longer a type, but an optional field in the dict
- Invoices in the wallet are indexed by a hash of their serialized list of outputs.
- Requests are still indexed by address, because we never generate Paytomany requests.
- Add 'clear_invoices' command to CLI
- Add 'save invoice' button to Qt
2019-09-12 20:11:20 +02:00
SomberNight
1b332748c3
qt console: fix commands that do not expect a 'wallet' arg
2019-09-12 19:22:55 +02:00
SomberNight
b9af8bf60a
get_tx_fee: further follow-up 7b828359c6
2019-09-12 17:22:35 +02:00
ThomasV
3d04399581
follow-up 7b828359c6
2019-09-12 13:12:48 +02:00
ThomasV
79de0489e3
kivy: do not remove fee from tx value in history (minor)
2019-09-12 12:32:38 +02:00
ThomasV
7b828359c6
simplify get_tx_fee
2019-09-12 12:26:49 +02:00
SomberNight
482605edbb
wallet: organise get_tx_fee. store calculated fees. storage version 19.
2019-09-12 08:59:27 +02:00
ThomasV
5c83e8bd1c
follow-up 241873f0a4
2019-09-12 08:58:58 +02:00
SomberNight
b138fff9a5
wallet: txi/txo small clean-up
2019-09-12 04:07:17 +02:00
SomberNight
241873f0a4
address_synchronizer.get_history now returns HistoryItem(NamedTuple)s
2019-09-12 04:06:51 +02:00
ThomasV
65b88dca86
return fees in history, show them in kivy GUI
2019-09-11 17:49:40 +02:00
ThomasV
a47a2c1b72
follow-up prev
2019-09-11 17:08:03 +02:00
ThomasV
1d82093ca1
fix bug in lightning get_history: filter settled htlcs first
2019-09-11 17:06:07 +02:00
ThomasV
30092cd68c
kivy: request PIN to load_wallet only on android
2019-09-11 16:36:04 +02:00
ThomasV
215dc96de7
define LNWatcher.do_breach_remedy
2019-09-11 11:58:28 +02:00
ThomasV
7370910fee
fix simple_config.estimate_fee
2019-09-11 11:49:32 +02:00
SomberNight
c531c72940
kivy: attempt at handling (some) exceptions on startup
2019-09-10 21:29:13 +02:00
SomberNight
a05dab2c4d
storage: read/write sanity checks
...
related: #4110
supersedes: #4528
2019-09-10 21:17:15 +02:00
SomberNight
4dda162336
qt wizard: turn 'temp_storage' into local variable
2019-09-10 20:19:41 +02:00
SomberNight
9eee36fe00
follow-up prev
2019-09-10 20:18:53 +02:00
SomberNight
098636c69a
fix tests
2019-09-10 19:39:52 +02:00
SomberNight
9c31c1f970
wallet: address_is_old is now checked using SPV (during sync)
2019-09-10 18:26:09 +02:00
SomberNight
b2920db8b8
config: enforce that SimpleConfig is singleton
...
related: #5629
2019-09-10 18:01:10 +02:00
ThomasV
a43be6657d
follow-up on SingleConfig
2019-09-10 17:14:25 +02:00
SomberNight
1a08063928
config: remove 'open_last_wallet' side-effecting
...
related: #5629
2019-09-10 17:10:52 +02:00
SomberNight
d1026b5afe
follow-up: SimpleConfig is supposed to be singleton
...
see cefa4762ba
and #5629
2019-09-10 16:38:10 +02:00
ThomasV
16e293c289
follow-up cefa4762ba
2019-09-10 16:24:21 +02:00
ThomasV
8e4fe051d3
add comment in storage._write
2019-09-10 09:26:07 +02:00
ThomasV
cefa4762ba
do not create multiple instances of SimpleConfig ( fix #5629 ). Add config field to wallet
2019-09-10 08:57:40 +02:00
SomberNight
bcdb72ae93
qt: add some type hints
2019-09-09 22:19:36 +02:00
SomberNight
ef5a5151e3
daemon: make 'wallets' dict private
...
especially as keys (paths) need to be standardized, this should not be exposed
2019-09-09 22:15:11 +02:00
SomberNight
befa8ea771
transaction: kill "name", "csv_delay", "cltv_expiry" fields
2019-09-09 19:38:35 +02:00
ThomasV
e5502a58ba
uncomment breach_remedy in watchtower
2019-09-09 18:49:14 +02:00
ghost43
ddcd77ab36
Merge pull request #5628 from TheCharlatan/fixMultisigDigitalBitBox
...
Digital BitBox: Fix sending to self
2019-09-09 14:37:17 +00:00
TheCharlatan
e7079f1bea
Digital BitBox: Fix sending to self
...
Make sure that a pubkey is only appended to the checkpub array if it
corresponds to a change address. Signing will fail otherwise, if a
non-change pubkey is sent as part of the checkpub list to the Digital
BitBox.
2019-09-09 15:07:51 +02:00
ThomasV
64deb87ade
fix #5513
2019-09-09 11:58:32 +02:00
ThomasV
103a37b0ca
add wallet_path to kwargs in run_cmdline
2019-09-09 09:58:16 +02:00
ThomasV
46ffab0b55
remove --wallet option for daemon. fixes #3752
2019-09-09 06:28:54 +02:00
SomberNight
d1dea9343e
wallet: address_is_old minor clean-up
...
also, synchronize was defined twice in AddressSynchronizer
2019-09-09 01:34:29 +02:00
SomberNight
ccc1897f36
qt addresses list: use IntEnum for dropdown filters
2019-09-09 00:24:22 +02:00
ThomasV
86bd3839df
follo-up 35761d1241
2019-09-08 19:25:35 +02:00