Commit Graph
357 Commits
Author SHA1 Message Date
edouard 70dea710ae installer: forbid keys with same master fg in same path 2023-10-20 11:48:18 +02:00
edouard 757b53ebab cargo update -p liana 2023-10-18 17:37:12 +02:00
edouard aeff735ac3 fix unconfirmed payments layouts with labels 2023-10-18 17:37:12 +02:00
edouard dbb91464c8 fix update labels for pending_txs 2023-10-18 17:37:12 +02:00
edouard 9edcdd9a4e Add labels to change outputs according to main label 2023-10-18 17:37:12 +02:00
edouard 2354ac9175 cargo clippy --fix --lib -p liana_gui 2023-10-18 17:37:12 +02:00
edouard 9db4541952 Add labels support to gui 2023-10-18 17:37:12 +02:00
jp1ac4 846431ed53 gui: display (estimated) feerate
For transactions that have been broadcast, the feerate is calculated
using the transaction's actual size. For PSBTs, the feerate is
calculated using the max satisfaction size for all inputs, whether
they have been signed or not.
2023-10-12 16:16:55 +01:00
edouard 19491d1d00 Merge #720: gui: Trim text inputs
9895b493f1 gui: trim text input strings (jp1ac4)
d3f2931375 gui: remove unused file (jp1ac4)

Pull request description:

  This is to resolve #323.

  Following suggestions in #323, I've added a new `TrimmedString` struct that takes a string and applies `trim()`. This type is then used as `form::Value<TrimmedString>` to ensure text inputs are trimmed.

  I'm creating this PR as draft to check if this is the right approach before applying the change to other inputs.

  I've also removed a view file that seems to have been created accidentally.

ACKs for top commit:
  edouardparis:
    ACK 9895b493f1

Tree-SHA512: 76c7f28ed2d0b6b6b76658a9368b918b0b211e2fabd72ac5d19c13adcbb2d3645b78680a8849f235ee58620fbe8df440ef8354f2d50d39601879bb7727465335
2023-10-06 10:22:53 +02:00
jp1ac4 9895b493f1 gui: trim text input strings
This is applied to all forms except those concerning fingerprint labels
and the new GUI labels feature.
2023-10-06 01:48:41 +01:00
edouard 52eabd6e07 Merge #715: installer: Finalize installation and start automatically on final step
f771e674fa gui(installer): restrict clicking previous on final step (jp1ac4)
45f91216d5 gui(installer): remove unused fields from final step (jp1ac4)
03c2bd76b8 gui(installer): install and start automatically on final step (jp1ac4)

Pull request description:

  This is to resolve #679.

  The following changes have been made:
  - Change title of final step to "Finalize installation"
  - Install and load wallet automatically when reaching final step
  - Remove fields from `Final` step that are no longer used

  This is how the page looks when installing:
  ![image](https://github.com/wizardsardine/liana/assets/121959000/a5f2b35d-4c4b-4316-9b7b-744a19daf597)

  The following is only shown for ~1 sec once wallet has been installed and before loading wallet:
  ![image](https://github.com/wizardsardine/liana/assets/121959000/830240a1-860c-4c89-890a-e1fb91adfc25)

ACKs for top commit:
  edouardparis:
    ACK f771e674fa

Tree-SHA512: b5360c77a13e4028331e4072246f1c897aa6fe61b0c8697b33d5c91ed460e55fe76b8808f4779db2b2f0322e27433e5dbb72fd0210cbf77f28a270bd82ea2558
2023-10-05 11:09:38 +02:00
jp1ac4 f771e674fa gui(installer): restrict clicking previous on final step 2023-10-04 18:26:08 +01:00
jp1ac4 2a9274adba gui: show more info on synchronisation screen 2023-10-03 23:17:24 +01:00
jp1ac4 d3f2931375 gui: remove unused file 2023-10-03 14:44:25 +01:00
jp1ac4 45f91216d5 gui(installer): remove unused fields from final step 2023-09-28 18:46:06 +01:00
jp1ac4 03c2bd76b8 gui(installer): install and start automatically on final step 2023-09-28 18:45:04 +01:00
jp1ac4 7079c6f82b installer: show message when starting bitcoind
This message will now be shown also in case bitcoind was already
installed on a previous occasion.
2023-09-18 14:42:35 +01:00
edouard 338195a186 Merge #689: gui: use patch for iced_futures
eebf0c2035 contrib: adapt GUIX build for iced_futures patch (edouard)
df849ba960 gui: use patch for iced_futures (edouard)

Pull request description:

  from #685

ACKs for top commit:
  darosior:
    ACK eebf0c2035 -- that's a clean backport of #685 (which i ack'd) and of #687 (which i authored).

Tree-SHA512: e80777417dad0301ce6b9762b2fac02a684e3ce312ad77509e5f2457bfdd11f93d46108fe7bed451eeacf7cc0f3703a8cfa8e18e2dda8f193e704a44c42d019a
2023-09-07 10:51:05 +02:00
edouard 7c02557bc8 Allow rescan for external daemon and internal bitcoind 2023-09-07 10:00:46 +02:00
edouard 0d44782701 Merge #688: async-hwi 0.0.11
9ac00d6996 async-hwi 0.0.11 (edouard)

Pull request description:

ACKs for top commit:
  edouardparis:
    Self-ACK 9ac00d6996

Tree-SHA512: 6e3850ed7ec182bc7beddae01f8357bff92676f24fd70018098f8cb25da09d551a877f0f5cf9da86255d62cf46416ff549bc5952fc692a30af47731ce136740d
2023-09-06 15:34:09 +02:00
edouard df849ba960 gui: use patch for iced_futures
close #684
2023-09-06 12:35:18 +02:00
edouard 9ac00d6996 async-hwi 0.0.11 2023-09-06 12:27:25 +02:00
Antoine Poinsot 3a4192bfc5 [bugfix] gui: installer: don't let them generate more than one xpub
We would always generate the same one.
2023-09-01 12:51:35 +02:00
jp1ac4 6d9b754800 gui: ensure we can retry starting in case of error 2023-08-31 16:04:18 +01:00
Antoine Poinsot 24a04af51f Merge #662: loader: try to stop bitcoind if connected
0a432d081d limit retry to loader stop (edouard)
68a2278f2a fix loader: add waiting_for_bitcoind_daemon (edouard)
320a6d700c loader: try to stop bitcoind if connected (edouard)

Pull request description:

ACKs for top commit:
  darosior:
    ACK 0a432d081d

Tree-SHA512: 11afb43260352df33c29d79adbef36fbe3925a2016b27cb8a9bcf5c50b78094afbf514ac437776f880b85380b7f5c7d778949e956e9eb758ff4afc22a579c700
2023-08-31 16:22:54 +02:00
Antoine Poinsot 739bff92b8 Merge #659: gui: installer: more robust poll for cookie file at bitcoind startup
76bb74371f 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 76bb74371f

Tree-SHA512: a0d4af1cadbea99c4c9f5ca6b7e642a79e97c7a35e829704144be5edb84c9c398872b7fbaab3af73600589194512747ac8da9cb7787a362bde3c6ef797f4ec29
2023-08-31 16:22:41 +02:00
edouard 0a432d081d limit retry to loader stop 2023-08-31 15:20:49 +02:00
edouard 68a2278f2a fix loader: add waiting_for_bitcoind_daemon 2023-08-31 15:12:43 +02:00
edouard 320a6d700c loader: try to stop bitcoind if connected 2023-08-31 15:03:23 +02:00
edouard 9b154c7968 fix loader: do not start bitcoind if one is running 2023-08-31 14:05:07 +02:00
Antoine Poinsot 76bb74371f gui: installer: more robust poll for cookie file at bitcoind startup
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.
2023-08-31 13:08:51 +02:00
edouard bc87839e52 Gui config: start_internal_bitcoind
Installer will install bitcoind in a directory
that will have always the same relative path to
the liana datadir.
GUI needs then only a flag "start_internal_bitcoind" set to true
to check the conventional path of the downloaded bitcoind exe
and start the internal bitcoind
2023-08-31 12:23:29 +02:00
edouard d700f8a3cf Add parent directory to bitcoind exe and datadir
.liana/bitcoind
├── bitcoin-25.0
│   └── bin
└── datadir
    ├── anchors.dat
    ├── banlist.json
    ├── bitcoin.conf
    ├── blocks
    ├── chainstate
    ├── debug.log
    ├── fee_estimates.dat
    ├── mempool.dat
    ├── peers.dat
    └── settings.json
2023-08-31 11:56:22 +02:00
edouard 6d8c9e437f gui: forbid edit bitcoind client config if internal 2023-08-31 09:45:47 +02:00
edouard bfe73fad18 Add bitcoind logs to loader 2023-08-31 09:09:54 +02:00
edouard 4c4efebe5b gui: encapsulate bitcoind process management
To know and manage the fact that gui or installer
started a bitcoind sub process, the process child
is wrapped and passed by the different state of the app.
2023-08-31 08:29:50 +02:00
edouard d4cf9e3466 fix: move structs next to their methods 2023-08-30 18:52:34 +02:00
edouard c756969e72 cleanup bitcoind module dep to app config 2023-08-30 18:52:34 +02:00
jp1ac4 bf67f94f56 installer: download and install bitcoind 2023-08-30 16:01:43 +01:00
jp1ac4 d507d5760a gui: add subscription to Step trait 2023-08-30 16:01:43 +01:00
jp1ac4 ae23fbc81d gui: add download module
This is based on https://github.com/iced-rs/iced/blob/master/examples/download_progress/src/download.rs.
2023-08-30 16:01:30 +01:00
jp1ac4 b3bc9435ce gui: add dependencies to download and install bitcoind 2023-08-30 15:59:25 +01:00
edouard 52f3ac6a09 Merge #655: check imported descriptor network
7ad12c50db check imported descriptor network (edouard)

Pull request description:

  close #337

ACKs for top commit:
  edouardparis:
    Self-ACK 7ad12c50db

Tree-SHA512: d760540fedbdfc4eff4ff8c34305a6c98d5f9817c981289903e11f7c536fb0dedf490f1eb72ccaa392f02db8b28f8c19f9edc386b5cb8afbaffa0e4aa59c49f3
2023-08-30 15:56:54 +02:00
edouard 7ad12c50db check imported descriptor network
close #337
2023-08-30 14:21:45 +02:00
Antoine Poinsot 441800d095 gui: update lianad 2023-08-29 20:51:02 +02:00
Antoine Poinsot 3250d8dc87 gui: adapt to latest change in lianad API 2023-08-29 19:11:30 +02:00
Antoine Poinsot b195e3252e gui: update lianad 2023-08-29 18:54:36 +02:00
Antoine Poinsot f9b2ff1413 installer: remove legacy warning on incompatible descriptor.
Fixes #613.
2023-08-29 16:26:54 +02:00
Antoine Poinsot c35495a53a Merge #637: installer: move bitcoind steps to own module
bc35cdaad8 installer: move bitcoind steps to own module (jp1ac4)

Pull request description:

  This was originally part of #630, but will be easier to see changes by moving to its own PR.

  It simply moves bitcoind-related content of `step/mod.rs` to its own module.

ACKs for top commit:
  darosior:
    ACK bc35cdaad8 -- move-only + adapting includes

Tree-SHA512: f3526c7d1d5325f1057f77dac9197d3548a796d860f8612577016138ac47dfab1f8a04b4063e74b69b337c6202999adfecb30c4a7e139e1419416a6906084b33
2023-08-28 17:11:45 +02:00
jp1ac4 bc35cdaad8 installer: move bitcoind steps to own module 2023-08-28 15:00:53 +01:00