Commit Graph
328 Commits
Author SHA1 Message Date
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
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
edouard eb10cdacd6 fix loader: remove duplicate logs with bitcoind module 2023-08-28 12:00:07 +02:00
edouard a50761afc0 fix gui loader: stop bitcoind if running after close request
close #631
2023-08-25 17:57:56 +02:00
jp1ac4 36cf85d849 gui: add option to use internal bitcoind
During installation, the user may choose for Liana to configure and start bitcoind for them.

This internal bitcoind uses as its data directory the `bitcoind_datadir` folder within the
Liana data directory.

If the internal bitcoind option has been selected for a network, it will be automatically
started when the user returns to Liana and stopped when Liana is closed.
2023-08-23 16:43:55 +01:00
jp1ac4 765c68b02e installer: allow for different previous messages
Clicking the "Previous" button during installation will default
to the current behaviour, unless a different message is passed to
the function by any given step.
2023-08-23 14:39:18 +01:00
edouard caa9d385b9 check if embedded daemon is stopped before request 2023-08-23 12:24:53 +02:00
edouard a1c7166117 fix gui: stop daemon gracefully 2023-08-22 16:18:39 +02:00
edouard df7e575594 Merge #606: gui: installer: convey registering on a signing device isn't always required
bba5cd63e8 gui: installer: convey registering on a signing device isn't always required (Antoine Poinsot)

Pull request description:

  As discussed in #545, in some cases we nudge the user to register the descriptor on their signing device although they might not have one. Those cases only ever arise when importing a descriptor (either when recovering from backup or participating in the creation of a descriptor on another laptop), since when the descriptor is created beforehand we can simply detect whether a signing device was used and thereby needs to be registered (implemented since https://github.com/wizardsardine/liana/pull/470).

  Therefore, detect when the registration step arises as part of an import process and if so adjust the language to convey registration on a signing device may not be necessary.

  Result:
  ![image](https://github.com/wizardsardine/liana/assets/22457751/b6964dbc-c1e4-4059-b85a-c61492ba523c)

  Fixes #545.

ACKs for top commit:
  edouardparis:
    ACK bba5cd63e8

Tree-SHA512: 5b25b0c980f3e57563fc3c301802a7c4da50d7c80802d3e6a7517f98ee1da60e9d5ebe890ce3b8c34ca882220d920e31c59b79877c9e8f48b72b092d3809acda
2023-08-18 09:21:15 +02:00
edouard 30ce2dea08 installer: use appended path instead of account number for xpubs 2023-08-11 17:48:10 +02:00
Antoine Poinsot bba5cd63e8 gui: installer: convey registering on a signing device isn't always required 2023-08-11 12:47:41 +02:00
edouard 869f3ec3d2 installer: disallow xpub with-appended derivation path
close #576
2023-07-20 15:32:21 +02:00
edouard e327928f83 gui: bitcoin=0.30 and async-hwi=0.0.8 2023-07-19 16:24:28 +02:00
Antoine Poinsot 96e4cb5353 Update proc-macro2 to fix a nightly compilation bug 2023-07-13 09:56:11 +02:00
edouard b070d61edb gui: bump iced 0.9 2023-06-05 11:08:04 +02:00
edouard 89d8e660be gui: update async-hwi 0.0.7 2023-05-31 11:21:42 +02:00
jp1ac4 c55b992ace gui: clear fingerprint alias when changing device type 2023-05-26 08:23:36 +01:00
Antoine Poinsot 0406085ed5 Merge #527: minor wording fix
506f97dc8e minor wording fix (pythcoiner)

Pull request description:

  following #508

ACKs for top commit:
  darosior:
    ACK 506f97dc8e

Tree-SHA512: 5e511e8ebe1ec346dfdf70759f15e2548e78323efafe0ba97a15a8195e52dd6dde490c4320f8a42b533d3772e5f83f8fa9c9edba9dcb8012cb96b319507a3072
2023-05-14 13:43:38 +02:00
pythcoiner 506f97dc8e minor wording fix 2023-05-14 08:51:32 +02:00
pythcoiner 41978be064 minor wording fix
minor wording fix
2023-05-14 08:03:00 +02:00
Antoine Poinsot 8debaf8e83 Merge #490: Release 1.0 preparation
fe906da612 Bump version to 1.0.0 (Antoine Poinsot)
73902627d6 Add a SECURITY.md (Antoine Poinsot)
664a9b6cf5 Documentation updates for v1.0 (Antoine Poinsot)
1f9b78383a CHANGELOG: add v1.0 release notes (Antoine Poinsot)
e685f3b55c contrib: fix guix build to use lianad's master (Antoine Poinsot)

Pull request description:

ACKs for top commit:
  darosior:
    self-ACK fe906da612

Tree-SHA512: 3412855d292c00de5b40171f555f661f64927f1bc635fa36fad70fe9bec93551bf9421e6c75d6d26fd9cdc8f6536979b8417db50617c484ae80ef2289b07ddb5
2023-05-11 17:05:06 +02:00
edouard 98c7d54ae0 gui: increase scrollable width 2023-05-11 13:39:31 +02:00
edouard 916e475395 change install registration text 2023-05-11 13:26:13 +02:00
Antoine Poinsot fe906da612 Bump version to 1.0.0 2023-05-11 11:44:57 +02:00
edouard 2d7f2254ca fix psbt view: wrong signer fingerprint padding 2023-05-11 10:34:35 +02:00
edouard 200fa9e7b4 fix installer final step view 2023-05-10 17:05:26 +02:00
edouard 54e9446bc0 fix: add cycle badge to send-to-self psbts 2023-05-10 09:59:31 +02:00
edouard b9ca312b07 ui: add success mark and key mark 2023-05-10 09:51:07 +02:00
edouard 4c08f4ae35 Add grey brand logo to installer and launcher 2023-05-09 21:29:09 +02:00
edouard e0a207bb06 installer: change user path icons 2023-05-09 20:57:38 +02:00
edouard cf042316c1 fix: installer layout 2023-05-09 20:57:38 +02:00