76bb74371f7d33603ac0864b9ecea014a3cc0cda gui: installer: more robust poll for cookie file at bitcoind startup (Antoine Poinsot)
Pull request description:
We would formerly wait a definite number of seconds for the cookie file to appear. But this approach presents a fundamental issue: how long is enough before we can be reasonably sure bitcoind will never start?
For instance on mainnet the checks performed at startup could take more than the 3 seconds we would previously wait for. If it does we would have incorrectly errored and let bitcoind run in the background.
Instead, assume bitcoind would exit if it errors. Until it does so, continue polling for the cookie file. This approach also presents drawbacks (for instance what if bitcoind is performing a very long operation before creating the cookie file?), but the former approach wouldn't be an acceptable solution in this case either. And the new one is preferable as its failure scenario seems much less probable.
ACKs for top commit:
edouardparis:
ACK 76bb74371f7d33603ac0864b9ecea014a3cc0cda
Tree-SHA512: a0d4af1cadbea99c4c9f5ca6b7e642a79e97c7a35e829704144be5edb84c9c398872b7fbaab3af73600589194512747ac8da9cb7787a362bde3c6ef797f4ec29
Liana GUI
The Liana graphical interface.
Dependencies
You will need a few dependencies in order to run correctly this software. For Linux systems, those are:
fontconfigfor access to fonts (On Debian/Ubuntuapt install libfontconfig1-dev)libudev-devto communicate with devices through USB (On Debian/Ubuntuapt install libudev-dev)
In addition, if you want to build the project from source, you will need:
pkg-config(On Debian/Ubuntuapt install pkg-config)
Usage
For a quick guide to try out the software see ../doc/TRY.md.
liana-gui --datadir <datadir> --<network>
The default datadir is the same as for lianad (~/.liana for Linux). The default network is
Bitcoin mainnet, but testnet signet and regtest are supported.
If the software is started with no parameter and no data directory is detected, a Liana installer will be spawned that will guide you in the processing of configuring Liana.
If the software is started and a reachable lianad is running, it will plug to it via lianad's
JSONRPC interface.
Troubleshooting
- If you encounter layout issue on
X11, try to start the GUI withWINIT_X11_SCALE_FACTORmanually set to 1