edouard 6572b2fa4a
Merge #154: gui: cleanup the "amount left to select" calculation
493dbde666b73097848a5a4c7d10ee1ad7cfeab2 gui: cleanup the "amount left to select" calculation (Antoine Poinsot)

Pull request description:

  It don't think it was blatantly wrong, but neither was it entirely correct. And it was seriously lacking comments explaining what was going on for such a tricky calculation.

  In order to make sure it's correct, and make this more code more maintainable (and readable to future contributors), clean it up by using a more obviously-correct approach: a transaction template that is filled with inputs depending on the coins that were selected.

  I DID NOT TEST IT!

ACKs for top commit:
  edouardparis:
    ACK 493dbde666b73097848a5a4c7d10ee1ad7cfeab2

Tree-SHA512: b8094326f42ed86a4fcd4e16961a7cb77b07d423215665248dd20db66e2c2eb5500fd7cbdb58d0febae5beb3a40f7b531ec24d1c3e7d7a16a45686ac40a89e9b
2022-12-06 15:10:28 +01:00
..
2022-11-30 08:51:24 +01:00
2022-11-22 18:44:35 +01:00

liana GUI

Liana GUI is an user graphical interface written in rust for the Liana daemon.

Dependencies

  • fontconfig (On Debian/Ubuntu apt install libfontconfig1-dev)
  • pkg-config (On Debian/Ubuntu apt install pkg-config)
  • Vulkan drivers (On Debian/Ubuntu apt install mesa-vulkan-drivers libvulkan-dev)
  • libudev-dev (On Debian/Ubuntu apt install libudev-dev)

We are striving to remove dependencies, especially the 3D ones.

Usage

liana-gui --datadir <datadir> --<network>

The default datadir is the default lianad datadir (~/.liana for linux) and the default network is the bitcoin mainnet.

If no argument is provided, the GUI checks in the default datadir the configuration file for the bitcoin mainnet.

If the provided datadir is empty or does not have the configuration file for the targeted network, the GUI starts with the installer mode.

Instead of using --datadir and --<network>, a direct path to the GUI configuration file can be provided with --conf.

After start up, The GUI will connect to the running lianad. A command starting lianad is launched if no connection is made.

Troubleshooting

  • If you encounter layout issue on X11, try to start the GUI with WINIT_X11_SCALE_FACTOR manually set to 1