Commit graph

12820 commits

Author SHA1 Message Date
ThomasV
77c2aa5017 add Max button to swap dialog, fix fee slider behaviour when max is selected 2020-06-18 14:28:40 +02:00
ThomasV
a1e8f9e2aa swaps: mapping of prepay_hash to payment_hash 2020-06-18 14:28:40 +02:00
ThomasV
c8506eaa39 swaps: store fee_preimage 2020-06-18 14:28:40 +02:00
ThomasV
540dd73f3b Submarine swaps:
- improve gui
 - allow coin selection
 - allow spending 'max'
2020-06-18 14:28:40 +02:00
ThomasV
ee59ad13c4 support new protocol (minerFeeInvoice) 2020-06-18 14:28:40 +02:00
ThomasV
bcf2246633 minor fix 2020-06-18 14:28:40 +02:00
ThomasV
e6e6103434 swaps: add safeguards to gui 2020-06-18 14:28:40 +02:00
ThomasV
5fa09970b6 swaps: move fee logic to swap_manager, fix command line 2020-06-18 14:28:40 +02:00
ThomasV
3874f7ec77 swaps: use StoredObject to store data 2020-06-18 14:28:40 +02:00
ThomasV
a73f24e826 swaps: perform 10 payment attempts 2020-06-18 14:28:40 +02:00
ThomasV
fa399f3471 swaps: show time left until tx can be refunded 2020-06-18 14:28:40 +02:00
ThomasV
04fb329c2e swaps: stop watching address once utxo is spent and mined 2020-06-18 14:28:40 +02:00
ThomasV
252591832a swaps: improve history display 2020-06-18 14:28:40 +02:00
ThomasV
7ec7dd07d0 swaps: disable rbf 2020-06-18 14:28:40 +02:00
ThomasV
6020c848a9 swaps: add fee_combo, hide min/max 2020-06-18 14:28:40 +02:00
ThomasV
f8dd62aec0 show swaps as single line in history
main_window.run_coroutine_from_thread
2020-06-18 14:28:40 +02:00
ThomasV
46770bfd71 submarine swaps: fix expected amounts 2020-06-18 14:28:40 +02:00
ThomasV
17485e3b88 follow-up prev commit 2020-06-18 14:28:40 +02:00
ThomasV
000e56d67e submarine swaps: verify amounts 2020-06-18 14:28:40 +02:00
ThomasV
76bddb1ec2 swaps: handle cancellation in password dialog 2020-06-18 14:28:40 +02:00
ThomasV
608d898119 submarine swaps: fix fee rounding and fee slider behavior 2020-06-18 14:28:40 +02:00
ThomasV
6b36c59ab0 submarine_swaps: add fee slider, improve gui 2020-06-18 14:28:40 +02:00
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
SomberNight
3c6b049f9a
appimage: update package in dockerfile 2020-06-17 00:33:36 +02:00
SomberNight
121be4cde6
fix typo in prev 2020-06-17 00:22:46 +02:00
SomberNight
f5f3394552
git sanity: enforce "git checkout commithash" actually pulls commit
If there is a collision between a branch name and a commit hash, git
will choose the branch, even if the full 40-hex-long commit hash is
given. GitHub disallows branches/tags with such a name but git itself
does not. By adding the `^{commit}` syntax sugar after a ref name,
we can tell git that we want the commit hash to be preferred,
and hence we don't need to trust GitHub (only git).

see https://security.stackexchange.com/questions/225411/
2020-06-16 19:55:17 +02:00
ThomasV
661ecb2cf5 add help text to channel backup QR code 2020-06-16 18:48:04 +02:00
SomberNight
83cabccdb5
bump libsecp256k1 version 2020-06-15 16:56:36 +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