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
ThomasV
35761d1241
Save remote policy of chanel in wallet file (for private channels)
2019-09-08 19:14:28 +02:00
SomberNight
1612bca4c8
wine build: add --build to ./configure: prevents cross-comp. misdetect
...
from Electron-Cash/Electron-Cash/commit/e87021a78dbdeb50e9cfa51ddf0c1ef60c7688e0
2019-09-08 18:55:31 +02:00
SomberNight
b381fd84fb
build: when building libsecp256k1, patch Makefile.am before autogen.sh
...
apparently this could have caused issues on MacOS
based on Electron-Cash/Electron-Cash@69f6cd0aa0
2019-09-08 18:47:30 +02:00
SomberNight
abde8ff169
wallet: fix maturity off-by-one
...
based on Electron-Cash/Electron-Cash@c70957eb13
2019-09-08 18:26:04 +02:00
SomberNight
e3d5475f03
kivy: commit png icons (for svg resources) into repo
2019-09-08 17:05:06 +02:00
SomberNight
b1dc281cba
kivy amount_dialog: truncate btc amounts to max precision
...
closes #5624
2019-09-08 15:41:10 +02:00
ThomasV
d5d9f5b46c
fix #5618
2019-09-08 12:06:21 +02:00
SomberNight
83fcdbd561
lnchannel: handle htlc-address collisions
...
We were previously generating an incorrect commitment_signed msg if there were
multiple htlcs sharing the same scriptPubKey.
2019-09-07 08:54:41 +02:00
SomberNight
00f15d491b
lnpeer: somewhat nicer log messages
2019-09-07 07:29:22 +02:00
SomberNight
d4da4aa56c
lnrouter: fix off-by-one in NUM_MAX_EDGES_IN_PAYMENT_PATH
2019-09-06 18:36:21 +02:00
SomberNight
25c372a3e0
lnworker.invoices access now uses lock
...
(qt gui thread vs asyncio thread race)
Traceback (most recent call last):
File "/home/user/wspace/electrum/electrum/gui/qt/main_window.py", line 1685, in do_send
self.pay_lightning_invoice(self.payto_e.lightning_invoice)
File "/home/user/wspace/electrum/electrum/gui/qt/main_window.py", line 1667, in pay_lightning_invoice
self.invoice_list.update()
File "/home/user/wspace/electrum/electrum/gui/qt/invoice_list.py", line 73, in update
_list = self.parent.wallet.get_invoices()
File "/home/user/wspace/electrum/electrum/wallet.py", line 525, in get_invoices
out += self.lnworker.get_invoices()
File "/home/user/wspace/electrum/electrum/util.py", line 401, in
return lambda *args, **kw_args: do_profile(args, kw_args)
File "/home/user/wspace/electrum/electrum/util.py", line 397, in do_profile
o = func(*args, **kw_args)
File "/home/user/wspace/electrum/electrum/lnworker.py", line 1007, in get_invoices
for key, (invoice, direction, status) in self.invoices.items():
RuntimeError: dictionary changed size during iteration
2019-09-06 18:27:47 +02:00
SomberNight
509df9ddaf
create class for ShortChannelID and use it
2019-09-06 18:09:05 +02:00
SomberNight
251db638af
only require libsecp256k1 if lightning is enabled
...
related: #5606
2019-09-06 15:08:15 +02:00
ThomasV
e5ff4fc7cd
fix #5605
2019-09-06 13:43:00 +02:00
ThomasV
5e92f637a6
fix CLI exception handling
2019-09-06 12:38:13 +02:00
ThomasV
35b0b3a43c
Fix CLI. Some commands require wallet_path. Return error on exception.
2019-09-06 11:06:08 +02:00
ThomasV
5faa0ade3d
ignore exceptions in payserver
2019-09-06 08:06:26 +02:00
SomberNight
712c3f1248
commands: try to fix tests
2019-09-05 23:22:11 +02:00
SomberNight
edf186da0d
channeldb.load_data: attempt at fixing race
...
closes #5525
2019-09-05 18:32:45 +02:00
SomberNight
4f741cfccc
lnpeer: longer timeouts
2019-09-05 18:31:51 +02:00
SomberNight
58681e4d07
follow-up prev (commands)
2019-09-05 18:30:04 +02:00
ThomasV
9ec9e1760a
CLI: always use the daemon's cmd_runner, and pass the 'wallet'
...
parameter explicitly to each command that requires it.
Previous code was relying on side effects to set the wallet.
This should fix #5614
2019-09-05 17:57:51 +02:00
SomberNight
0deb12cb2b
kivy: fix ln channel open via scan_qr
2019-09-05 17:06:42 +02:00
ThomasV
45f3e28d38
qt: minor fixes
2019-09-05 15:00:45 +02:00
ThomasV
28da62f51b
add PayServer settings to settings_dialog
2019-09-05 14:43:27 +02:00
ThomasV
96d3c36e4a
Qt: move settings dialog to a separate module
2019-09-05 13:21:18 +02:00
ThomasV
9d595f1fe1
fix websocket messages
2019-09-05 11:45:28 +02:00
ThomasV
94e7e94e2f
fix ssl config names, add new config tab
2019-09-05 11:36:50 +02:00
ThomasV
466c2bd293
for now, use PR_PAID for onchain unconfirmed
2019-09-05 11:33:09 +02:00
ThomasV
128285a050
http server: add ssl and bip70 signed requests
2019-09-05 10:57:50 +02:00
SomberNight
9d65120e59
commands: fix "close_wallet"
2019-09-04 20:16:47 +02:00