There are now two internal strategies to bump the fee of a txn. bump fee method 1: keep all inputs, keep all not is_mine outputs, allow adding new inputs bump fee method 2: keep all inputs, no new inputs are added, allow decreasing and removing outputs (change is decreased first) Method 2 is less "safe" as it might end up decreasing e.g. a payment to a merchant; but e.g. if the user has sent "Max" previously, this is the only way to RBF. We try method 1 first, and fail-over to method 2. Previous versions always used method 2. fixes #3652 |
||
---|---|---|
.. | ||
data | ||
nfc_scanner | ||
theming/light | ||
tools | ||
uix | ||
__init__.py | ||
i18n.py | ||
main.kv | ||
main_window.py | ||
Makefile | ||
Readme.md |
Kivy GUI
The Kivy GUI is used with Electrum on Android devices. To generate an APK file, follow these instructions.
Android binary with Docker
This assumes an Ubuntu host, but it should not be too hard to adapt to another similar system. The docker commands should be executed in the project's root folder.
-
Install Docker
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - $ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" $ sudo apt-get update $ sudo apt-get install -y docker-ce
-
Build image
$ sudo docker build -t electrum-android-builder-img electrum/gui/kivy/tools
-
Build locale files
$ ./contrib/make_locale
-
Prepare pure python dependencies
$ ./contrib/make_packages
-
Build binaries
$ sudo docker run -it --rm \ --name electrum-android-builder-cont \ -v $PWD:/home/user/wspace/electrum \ -v ~/.keystore:/home/user/.keystore \ --workdir /home/user/wspace/electrum \ electrum-android-builder-img \ ./contrib/make_apk
This mounts the project dir inside the container, and so the modifications will affect it, e.g.
.buildozer
folder will be created. -
The generated binary is in
./bin
.
FAQ
I changed something but I don't see any differences on the phone. What did I do wrong?
You probably need to clear the cache: rm -rf .buildozer/android/platform/build/{build,dists}
How do I deploy on connected phone for quick testing?
Assuming adb
is installed:
$ adb -d install -r bin/Electrum-*-debug.apk
$ adb shell monkey -p org.electrum.electrum 1
How do I get an interactive shell inside docker?
$ sudo docker run -it --rm \
-v $PWD:/home/user/wspace/electrum \
--workdir /home/user/wspace/electrum \
electrum-android-builder-img
How do I get more verbose logs?
See log_level
in buildozer.spec
Kivy can be run directly on Linux Desktop. How?
Install Kivy.
Build atlas: (cd electrum/gui/kivy/; make theming)
Run electrum with the -g
switch: electrum -g kivy