Commit graph

3438 commits

Author SHA1 Message Date
ThomasV
ac3ec19d2d submarine_swaps: simplification 2020-06-18 14:28:40 +02:00
ThomasV
96b4f0e26e submarine swaps: new API url 2020-06-18 14:28:40 +02:00
ThomasV
17ff6ffa08 submarine_swaps: add SwapManager 2020-06-18 14:28:40 +02:00
ThomasV
b26ad81e69 sub swaps:
- fix invoice expiration
 - use p2wsh
2020-06-18 14:28:40 +02:00
ThomasV
7d2979d776 submarine swaps: add normal swaps to GUI, various minor fixes 2020-06-18 14:28:40 +02:00
ThomasV
eb9f6ce293 submarine swaps: fix refund tx (p2wsh-in-p2sh, locktime) 2020-06-18 14:28:40 +02:00
ThomasV
10fa11267d qt: separate module for swap_dialog 2020-06-18 14:28:40 +02:00
ThomasV
1b1c7d1f9e submarine swaps: create refund transaction 2020-06-18 14:28:40 +02:00
ThomasV
756dd8eb66 submarine swaps: add forward swaps 2020-06-18 14:28:40 +02:00
ThomasV
f8b736c908 submarine swaps:
- use lnwatcher callback
 - add gui button
2020-06-18 14:28:40 +02:00
ThomasV
1e67e55303 submarine swaps, initial implementation:
- server uses Boltz API (https://docs.boltz.exchange/en/latest/)
 - reverse swaps only
 - command-line only
2020-06-18 14:28:40 +02:00
ThomasV
368229a4c3 lnsweep: claim our_ctx_to_local if we breach 2020-06-18 11:33:44 +02:00
SomberNight
2c962abe51
network: randomise the order of address subscriptions
Before this, we were subscribing to our addresses in their bip32 order,
leaking this information to servers. While this leak seems mostly harmless,
it is trivial to fix.
2020-06-17 19:25:52 +02:00
SomberNight
2580832a88
fix travis: regtest tests were failing with bitcoind 0.20
see https://github.com/bitcoin/bitcoin/pull/16524
2020-06-17 18:15:59 +02:00
SomberNight
725b6f1564
crypto: chacha20-methods: make associated_data param optional 2020-06-17 17:32:51 +02:00
ThomasV
b9db16327a on_payment_succeeded: use notify instead of show_message 2020-06-17 12:05:03 +02:00
ThomasV
e99a38e538 on_payment_succeeded: show description 2020-06-17 10:37:22 +02:00
ThomasV
661ecb2cf5 add help text to channel backup QR code 2020-06-16 18:48:04 +02:00
SomberNight
996799d79e
lnchannel: update_fee: improve "can afford" check 2020-06-15 16:10:12 +02:00
SomberNight
e59eb147c0
lnchannel.available_to_spend: LOCAL now respects "fee spike buffer" 2020-06-15 15:43:41 +02:00
SomberNight
ccf50dc980
lnchannel.available_to_spend: minor refactor 2020-06-15 14:39:57 +02:00
SomberNight
7fccd4fc5e
lnchannel.available_to_spend: consider both receiver's and sender's ctx 2020-06-15 14:39:54 +02:00
SomberNight
817411b889
ChannelConfig: add some clarifications 2020-06-15 14:39:42 +02:00
SomberNight
240c823e8b
crash reporter: propagate HTTP error as exception
which will then get displayed as an error, and not as if we succeeded sending...
2020-06-14 03:41:45 +02:00
SomberNight
43892dd61a
invoices: fix #6233 2020-06-14 03:39:35 +02:00
SomberNight
eb39aa143b
try fixing email plugin 2020-06-13 19:12:22 +02:00
SomberNight
0b224ba685
invoices: minor clean-up (type hints, mark broken things)
also rm some dead code
2020-06-13 18:54:22 +02:00
SomberNight
23ea64808d
fix tests: follow-up prev 2020-06-13 18:53:50 +02:00
SomberNight
906a2c15dc
sweeping via CLI: allow customising RBF
fixes #6231
2020-06-13 18:44:20 +02:00
ThomasV
485422b072 move android stuff to contrib/android 2020-06-12 20:57:22 +02:00
Jin Eguchi
4a18100e6b
Fix typos 2020-06-12 05:48:19 +09:00
SomberNight
5b4d46299a
ChannelConfig.validate_params: fix sat/msat unit mismatch
follow-up fc39295d20
2020-06-09 20:23:52 +02:00
ThomasV
d9c5258014
Merge pull request #6220 from spesmilo/jsonrpc_nodeps
Remove dependencies: jsonrpcserver, jsonrpcclient
2020-06-09 19:37:31 +02:00
SomberNight
3509343447
ln: make 'to_self_delay' CSV configurable
needed for tests
2020-06-09 18:36:34 +02:00
SomberNight
a32cb7784f
myAiohttpClient: add id counter, and rename to JsonRPCClient 2020-06-09 17:50:06 +02:00
SomberNight
50f705ee46
fix json-rpc interface (when not using CLI) 2020-06-09 17:45:04 +02:00
ThomasV
30f5be26ac Remove dependencies: jsonrpcserver, jsonrpcclient 2020-06-09 11:26:39 +02:00
SomberNight
fc39295d20
lnpeer: review safety check re channel open flow, and tweak params 2020-06-08 21:17:23 +02:00
ghost43
947af92126
tx dialog: show various warnings if input amounts cannot be verified (#6217)
see #5749
2020-06-08 14:24:41 +00:00
SomberNight
61ccc1ccd3
config: allow changing "skipmerklecheck" at runtime
requested by shesek for "bwt"
2020-06-08 16:10:47 +02:00
SomberNight
d0ab003978
qt qrcode: fix DeprecationWarning (float->int conversion)
...\electrum\electrum\gui\qt\qrcodewidget.py:88: DeprecationWarning: an integer is required (got type float).  Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
  qp.drawRect(left+c*boxsize, top+r*boxsize, boxsize - 1, boxsize - 1)
2020-06-07 03:10:27 +02:00
ThomasV
211118ae81 fix #6210: show_onchain/lightning_invoice dialogs 2020-06-06 18:17:13 +02:00
ThomasV
4004b8085f kivy on_resume: check self.has_pin_code() 2020-06-06 13:34:40 +02:00
ThomasV
1429c5b2bf (minor) fix missing parameter to PincodeDialog 2020-06-06 13:19:00 +02:00
ThomasV
0c17954d37 do not create backups for channels that do not have static_remotekey 2020-06-06 12:28:08 +02:00
ThomasV
2464b3ab81 follow-up 88bb5309c4 2020-06-06 12:08:36 +02:00
SomberNight
7bcb59ffb5
wallet: when sweeping, do network reqs in parallel, and don't block GUI 2020-06-05 20:30:25 +02:00
ThomasV
40a51cc090 channels_list: minor fix (lnworker might be None) 2020-06-05 15:17:16 +02:00
ThomasV
d9747a2ff1 wallet fixes for lightning disabled (follow up 6058829870) 2020-06-05 15:04:33 +02:00
ThomasV
56f4932f10 import/exports to json files:
- fix #5737
 - add import/export or requests
2020-06-05 13:17:01 +02:00