Commit graph

1809 commits

Author SHA1 Message Date
SomberNight
18627ecd1a lnwatcher: naive code to sweep to_local from our ctx (will not wait for timelock yet) 2019-08-20 09:03:10 +02:00
Janus
7a3551b5df ln: merge OpenChannel and HTLCStateMachine 2019-08-20 09:03:10 +02:00
Janus
42a56df996 ln: shortcut some OpenChannel fields to traversing too much 2019-08-20 09:03:10 +02:00
Janus
77e9abc655 ln: store HTLCStateMachine in lnworker.channels 2019-08-20 09:03:10 +02:00
ThomasV
c7e47b74a9 Separate open_channel dialog. In open_channel_coroutine, use host and port from channel announcements 2019-08-20 09:03:10 +02:00
ThomasV
6e71340e52 do not block GUI with open_channel 2019-08-20 09:03:10 +02:00
ThomasV
40fcf58fec lightning: display remote balance in gui 2019-08-20 09:03:10 +02:00
ThomasV
aeb58dbd66 do not pass channel list to update_rows signal, as it is sent to all windows 2019-08-20 09:03:10 +02:00
ThomasV
21c883bd0b Display channel status in the GUI.
Do not convert channel_id to integer; there is no reason to do that.
2019-08-20 09:03:10 +02:00
ThomasV
bf6d28e1f0 integrate channels_list with existing framework 2019-08-20 09:03:10 +02:00
ThomasV
12d3877873 lightning GUI: use existing receive and send tabs with lightning invoices 2019-08-20 09:03:10 +02:00
ThomasV
af4f0b6daf lnworker: separate invoice creation from payment flow 2019-08-20 09:03:10 +02:00
ThomasV
aafbe74a28 fix channel_reestablish 2019-08-20 09:03:10 +02:00
ThomasV
5a819611c8 qt: fix password passed to open_channel, cleanup 2019-08-20 09:03:09 +02:00
Janus
18963405ee lightning: remove hub based approach, port qt gui to lnbase 2019-08-20 09:03:09 +02:00
Janus
d055507003 lightning channels list: add mock server for testing 2019-08-20 09:03:09 +02:00
Janus
caadc5a5bb lightning_channels_list: use signals to avoid segfault 2019-08-20 09:03:09 +02:00
Janus
094b939a24 lightning: qt channel dialog, fix for shutdown when lightning disabled 2019-08-20 09:03:09 +02:00
Janus
1a05838ef2 lightning: assert result type, add invoice qr dialog 2019-08-20 09:03:09 +02:00
Janus
ad5aac1383 lightning: march 2018 rebase, without integration 2019-08-20 09:03:09 +02:00
Janus
097ac144d9 file reorganization with top-level module 2018-07-13 14:01:37 +02:00
SomberNight
c33363c1e5
fix #4042 2018-07-07 23:26:00 +02:00
SomberNight
8b1051fa24
fix #4418 2018-07-03 11:01:29 +02:00
SomberNight
eefcc60d98
color 2fa billing outputs in Qt tx dialog 2018-07-02 14:23:14 +02:00
SomberNight
39215b43b9
Qt send tab: disable "max" button for invoices 2018-07-02 02:41:34 +02:00
SomberNight
7f162733e0
fix #4037 (new issue but was merged into that) 2018-06-30 19:20:16 +02:00
SomberNight
c4ef5bfedb
Qt: minor text formatting
on Windows, the previous looked a bit better; but the lines were broken on Debian
2018-06-29 01:36:56 +02:00
SomberNight
2b93593e3f Qt: (minor) clean up "about" message 2018-06-28 19:55:54 +02:00
SomberNight
8b86f21520
wizard: extend derivation dialog to also let user select script type.
enable segwit multisig for bip39/hw wallets.
2018-06-26 19:31:05 +02:00
ThomasV
8116b80765
Merge pull request #3700 from bauerj/console-warning
Add a warning about harmful code to the console
2018-06-26 17:12:25 +02:00
SomberNight
ca7e5575bf
option to set a dark theme for Qt
qdarkstyle is now a new dependency - note that it is only for qt and qt is not strictly a dependency, but it is pure python and relatively small
2018-06-25 16:46:01 +02:00
SomberNight
51ed8a998c
fix: network.interface can become None at any time 2018-06-25 01:14:49 +02:00
ThomasV
24818c14ca
Merge pull request #3762 from SomberNight/txin_type_address_segwit
change partial txn serialization format for imported addresses txins
2018-06-22 13:58:15 +02:00
ghost43
7797af6ffa
Qt: show WIF help in import(x2) and sweep dialogs (#4425) 2018-06-20 15:58:37 +02:00
SomberNight
46fdbbbce5
change partial txn serialization format for imported addresses txins
offline signing with segwit WIF keys now works.
offline seed + online address signing now works.
2018-06-15 14:08:20 +02:00
SomberNight
9365b0f924
RBF: better exception handling 2018-06-14 22:36:54 +02:00
SomberNight
1b834a7a78
fix RBF 2018-06-14 22:19:06 +02:00
Johann Bauer
5eb1cbef92 [WIP] Crash reports android (#3870)
* Split crash reporter class

In Qt related stuff and basic stuff.

* Crash reports from Android

* Ignore exceptions in crash_reporter (if any)

* Open issue in browser

* Switch back to real server
2018-06-12 14:17:34 +02:00
ThomasV
0e8976856d
Merge pull request #4429 from Anilkumar18/patch-2
Added a meaningful message on invalid public key
2018-06-12 10:49:16 +02:00
Anilkumar18
0a24c820bb
Altered the do_encrypt warning message
changed the protection against public_key
2018-06-12 11:16:02 +05:30
SomberNight
89040de758
remove "from addresses" from wallet logic 2018-06-11 17:55:31 +02:00
SomberNight
1b36dd7690 fix "max" button to account for 2fa fees in both Qt and kivy 2018-06-11 17:47:22 +02:00
ThomasV
8d5e666d30 support TrustedCoin plugin in the kivy GUI 2018-06-11 17:47:22 +02:00
Anilkumar18
ece457627b
Added a meaningful message on invalid public key 2018-06-11 17:54:22 +05:30
Harm Aarts
e57e55aad8 Remove explicit send calls, part deux (#4408)
* Rename synchronous_get to synchronous_send

This makes it more inline with the method 'send' of which
synchronous_send is the, well, synchronous version.

* Move protocol strings from scripts to network

This is again a small step in the right direction. The network module is
going to accumulate more and more of these simple methods. Once
everything is moved into that module, that module is going to be split.

Note that I've left the scripts which use scripts/util.py alone. I
suspect the same functionality can be reached when using just
lib/network.py and that scripts/util.py is obsolete.

* Remove protocol string from verifier and websocket

Websocket still has some references, that'll take more work to remove. Once the
network module has been split this should be easy.
I took the liberty to rename a variable to better show what it is.

* Remove protocol strings from remainder

The naming scheme I'm following for the newly introduced methods in the network
module is: 'blockchain.<subject>.<action>' -> def <action>_(for|to)_<subject>

* Move explicit protocol calls closer to each other

This makes it easier to keep track of the methods which are due to be
extracted.

* Remove `send` when using `get_transaction`

This is the final step to formalize (the informal) interface of the network
module.
A chance of note is changed interface for async/sync calls. It is no longer
required to use the `synchronous_send` call. Merely NOT passing a callback
makes the call synchronous. I feel this makes the API more intuitive to work
with and easier to replace with a different network module.

* Remove send from get_merkle_for_transaction

The pattern which emerged for calling the lambda yielded an slight refactor.
I'm not happy with the name for the `__invoke` method.

* Remove explict send from websockets

* Remove explicit send from scripts

* Remove explicit send from wallet

* Remove explicit sync_send from commands, scripts

* Remove optional timeout parameter

This parameter doesn't seem to be used a lot and removing it makes the
remaining calls easier. Potentionally a contentious choice!

* Rename `broadcast` to `broadcast_transaction`

Doing so makes the method name consistent with the other ElectrumX protocol
method names.

* Remove synchronous_send

Now every method is intuitive in what it does, no special handling required.
The `broadcast_transaction` method is weird. I've opted not to change the
return type b/c I found it hard to know what the exact consequences are. But
ideally this method should just works as all the other ElectrumX related
messages. On the other hand this shows nicely how you _can_ do something
differnt quite easy.

* Rename the awkwardly name `__invoke` method

The new name reflects what it does.

* Process the result of linter feedback

I've used flake8-diff (and ignored a couple of line length warnings).

* Rename tx_response to on_tx_response

This fell through the cracks when this branch was rebased.

* subscript_to_scripthash should be get_balance

An oversight while refactoring.

* Add missing return statement

Without this statement the transaction would have been broadcasted twice.

* Pass list of tuples to send not single tuple

* Add @staticmethod decorator

* Fix argument to be an array
2018-06-06 15:06:04 +02:00
SomberNight
f0daf2d37b
Qt: addresses tab - align text 2018-06-04 22:37:34 +02:00
SomberNight
792c248919
Qt: FeerateEdit.get_amount now returns sat/byte 2018-06-04 21:17:25 +02:00
SomberNight
9788ca0250
Qt: feerate edit was sometimes rounding inconsistently 2018-06-04 21:01:47 +02:00
SomberNight
3031f594cb
scaled pixmaps no longer pixelated 2018-06-01 22:36:56 +02:00
SomberNight
2b84fba67b
storage upgrade as part of the wizard. fix storage upgrade on kivy. 2018-05-31 19:43:50 +02:00