Commit graph

602 commits

Author SHA1 Message Date
ThomasV
8346e358b2 move lnaddr.py to lib 2019-08-20 09:03:10 +02:00
Janus
10e8a90224 kivy: port lightning ui to lnbase 2019-08-20 09:03:09 +02:00
Janus
5e1412a839 lightning: channel details popup 2019-08-20 09:03:09 +02:00
Janus
ae7bce3385 lightning: paste sample using clipboard 2019-08-20 09:03:09 +02:00
Janus
6aebc0fd5d kivy: fix channel list error handling, close functionality for inactive channels 2019-08-20 09:03:09 +02:00
Janus
afa5797099 lightning: kivy: open channel button in invoice 2019-08-20 09:03:09 +02:00
Janus
1ab03e8b2a lightning: fix kivy channel close 2019-08-20 09:03:09 +02:00
Janus
ffe6342882 lightning: fix channels dialog 2019-08-20 09:03:09 +02:00
Janus
13527987bc lightning: add missing import, set console to none initially 2019-08-20 09:03:09 +02:00
Janus
d84eab0418 lightning: complete moving of lightning objects, acquire net/wallet lock while answering lightning requests 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
c6ccdbef90
fix #4503 2018-07-08 02:22:28 +02:00
SomberNight
f7c8e5a33b
fix #4497 2018-07-04 16:04:04 +02:00
SomberNight
1635c149bd
fix #4491 2018-07-02 22:50:19 +02:00
ThomasV
d58c069336 read apk version number from version.py 2018-06-29 10:45:34 +02:00
SomberNight
51ed8a998c
fix: network.interface can become None at any time 2018-06-25 01:14:49 +02:00
SomberNight
f8dab46a4b
kivy: fix fork detection gui 2018-06-25 01:02:21 +02:00
Janus
88d95123fb kivy: use RecycleView in address list 2018-06-22 20:07:36 +02:00
Janus
45b6afe190 kivy: use RecycleView in OutputList 2018-06-22 17:40:35 +02:00
SomberNight
a28ef06a58
kivy: tx_dialog scroll with bar 2018-06-21 18:37:14 +02:00
SomberNight
e3c9ce319c
kivy: make history and addresses scroll bars wider 2018-06-21 18:03:32 +02:00
Janus
5607c4bb7f kivy: use RecycleView in history 2018-06-21 15:52:45 +02:00
SomberNight
12af2dc63b
kivy history tab: allow scrolling with bar
follow kivy/kivy@0edae84139
2018-06-19 14:19:36 +02:00
SomberNight
ef5121cf12
android: disable backups 2018-06-19 02:44:21 +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
79558c1170 kivy wizard: replace checbox with button 2018-06-11 17:47:22 +02:00
ThomasV
e196d7b4d1 kivy: use TextInput to workaround Label texture size issue 2018-06-11 17:47:22 +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
SomberNight
cf80952071 better handle exceptions in wizard re "cannot connect to trustedcoin server" 2018-06-11 17:47:22 +02:00
SomberNight
27012e7394 tell user about 2fa fees when sending tx 2018-06-11 17:47:22 +02:00
SomberNight
396fa949b0 follow-up prev 2018-06-11 17:47:22 +02:00
SomberNight
531a2a5c1f during wallet restore allow user to retry after invalid OTP. add abort button on kivy. 2018-06-11 17:47:22 +02:00
SomberNight
248a3a5755 otp/email dialog handles pressing enter. do not offer to show seed for 2fa wallet. 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
SomberNight
0962766b72
kivy: show all xpubs 2018-06-08 20:33:09 +02:00
SomberNight
7043d6907f
follow-up prev 2018-06-08 20:31:04 +02:00
SomberNight
1d4ca34ca6
kivy: fix potential crash in on_resume
happened for me at least once, but for some reason kivy actually "ignored the exception", and simply printed a long trace into logcat, starting with:
WARNING:kivy:stderr: Exception ignored in: 'kivy.core.window._window_sdl2._WindowSDL2Storage.cb_event_filter'
2018-06-08 20:29:07 +02:00
SomberNight
cad8e29ed7
kivy: when pressing "max" button, catch NoDynamicFeeEstimates 2018-06-08 18:55:25 +02:00
SomberNight
610b37890f
kivy: after deleting wallet, try to open saved wallet
saved wallet = "wallet that was last open during a graceful shutdown"

previously we would just try to open "default_wallet". now, if the deleted wallet is not the saved wallet, we open the saved wallet; else try to open "default_wallet". if "default_wallet" does not exist, as before, the wizard launches.
2018-06-06 19:38:59 +02:00
SomberNight
ff7159495c
kivy: save and open to last wallet
The previous code did not work as before the flow reaches the old save point window.wallet is set to None in on_stop.
2018-06-06 19:21:00 +02:00
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
2b84fba67b
storage upgrade as part of the wizard. fix storage upgrade on kivy. 2018-05-31 19:43:50 +02:00
SomberNight
c34273b771
(minor) missing space in message when deleting wallet 2018-05-29 13:40:36 +02:00
SomberNight
86992aea6c
bundle libsecp256k1 in android apk
this works as there is already a p4a recipe upstream: 74bf788a29/pythonforandroid/recipes/libsecp256k1/__init__.py
2018-05-28 00:43:05 +02:00
SomberNight
7c6364c2c7
update kivy readme 2018-05-07 17:46:13 +02:00
SomberNight
c03d68d758
add 'sat' as base unit option 2018-05-05 12:52:19 +02:00
Ben Woosley
53320470f5 Format the transaction window fee rate with 1 decimal place (#4286)
* Fix format_satoshi to properly handle non-integer values

Handling the integer and fraction parts together via string formatting
simplifies the initial composition because the default behavior manages
the - sign, and the incorporation of the fractional part.

* Limit fee rate output to one decimal place

Via a new precision arg

* Introduce format_fee_satoshis and use it for all fee display
2018-04-24 18:54:14 +02:00
SomberNight
a161b6e655
RBF: make sure we know the fee for the old txn
related #4306
2018-04-24 15:30:13 +02:00
Dimitris Apostolou
989c9c2b55 Fix typos 2018-04-15 20:34:40 +02:00