2420 Commits

Author SHA1 Message Date
Michael Mallan
efd0c32e5d
fix: hide prev addresses option if there are none 2025-05-15 12:28:07 +01:00
Michael Mallan
c629142c58
fix: ignore address with index 0
This is always "revealed" for a new wallet and not generated by
the user.
2025-05-15 12:27:01 +01:00
edouardparis
e910c06027
Merge #1704: feat: List unused addresses on Receive panel
f8e702b65ea894131b212fdfed89b16068699fe9 feat: list unused addresses already revealed (Michael Mallan)
d84c75c1ce548c2c7dfecf98960e9a19409cb9e7 refactor: extract address card logic to function (Michael Mallan)
daa3daa938567e6d76e7dce02bddd725b97a72d9 refactor: add message for next receive address (Michael Mallan)
8b8b48142f60ede2b8ce702c89a61f3fd32a1842 feat: add list addresses method to gui daemon interface (Michael Mallan)

Pull request description:

  This implements #809 by listing unused addresses on the Receive panel.

ACKs for top commit:
  edouardparis:
    ACK f8e702b65ea894131b212fdfed89b16068699fe9

Tree-SHA512: 05538d099433bad33c947694e91bc082147159bebd4607ac2d37f9127013656c928a2a332f1212fc5f9d6a2d68e3047e7c3da5523233b92d47b2802811a706d8
2025-05-15 12:18:15 +02:00
Michael Mallan
f8e702b65e
feat: list unused addresses already revealed 2025-05-15 10:42:33 +01:00
Michael Mallan
d84c75c1ce
refactor: extract address card logic to function 2025-05-14 15:14:55 +01:00
Michael Mallan
daa3daa938
refactor: add message for next receive address
The Next message will be used for getting the next page
of unused addresses.
2025-05-14 15:06:51 +01:00
Michael Mallan
8b8b48142f
feat: add list addresses method to gui daemon interface 2025-05-14 15:06:49 +01:00
edouardparis
619ea6923f
Merge #1692: feat: add listrevealedaddresses command
3d6a22ea05df70d6f0c11f2f00c85dc16975ad28 feat: add rpc command to list revealed addresses (Michael Mallan)
4945dba7c066d1434fa38a09a955339b7182e693 feat: add command to list revealed addresses (Michael Mallan)
75f37708b3b1f6a89e0f5488c95618a07356f166 test: implement methods for getting/setting labels (Michael Mallan)
16b96b5456b46cd3703d4829b24746c8a489b3ed style: apply black formatting (Michael Mallan)

Pull request description:

  This implements #1678.

  The command parameters differ slightly from those described in the issue:
  - instead of a `keychain` enum parameter, I used  `is_change` to control whether receive or change addresses are returned.
  - I used an optional `continue_from` parameter to control pagination. The value to pass in the next request is provided by the previous response. If no value is provided in the response, there are no more addresses to list. If no value is set in the request, the addresses will be returned starting from the last revealed address.

  Setting the positional argument for `continue_after` as `null` will be treated the same as omitting it (for other RPC commands, a `null` value results in a parsing error).

ACKs for top commit:
  pythcoiner:
    utACK 3d6a22e

Tree-SHA512: 0efa93bc40d0751cbe64570f9789b3a701e0bc5aab982da9ed9f21117a2eea073a81388370d56a9021c0ff87b6cbaec7338339427e6c879e8e97eababb107f57
2025-05-12 09:36:21 +02:00
edouardparis
e512603602
Merge #1698: Advisory lock settings
7c9fa61a13587e3ac014e942c1f068e0d9c8cfc7 Encapsulate update of settings file (edouardparis)

Pull request description:

  close #1651

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

Tree-SHA512: f4c7ba99b5cd36f121e04d1b8b20d606c7c714870513c1eb09b21f02ee03f581a90bc565d029ba2cdfee83922039282129ec277ce145ca116a727366e690d57f
2025-05-07 17:27:51 +02:00
edouardparis
7c9fa61a13 Encapsulate update of settings file 2025-05-07 17:08:56 +02:00
edouardparis
b9a200af0b
Merge #1696: feat: asynchronous management of internal bitcoind
8c0c23e688b02a73393a7172b3f41bfaa2a9c143 Use gui panic hook (edouardparis)
40dc9ae8c01da0b250bf0e8ea40e275ef77bd23c Delete process internal bitcoind locks in case of panic (edouardparis)
0488ed37a3651add672212664d59f637be17c716 feat: asynchronous management of internal bitcoind (edouardparis)

Pull request description:

  This PR introduces a feature allowing multiple liana processes to the same internally managed bitcoind binary,
  by having the first process running a wallet relying a managed bitcoind to start it and the last process standing stopping it when closing.

  A new directory `./liana/bitcoind/locks` is introduces where a Liana process creates a file  `pid-timestamp` when it starts or uses the internally managed bitcoind binary and removes it when it does not use it anymore.
  Another Liana process can infer that it can stop the bitcoind binary by looking if any other lock file is present in this directory.

  In order to make the bitcoind child process survive once the Liana process that started it is closed, the  `libc::setsid();` method for unix  and the  `DETACHED_PROCESS` flag for windows are added to the process command.

  The current panic hook of the gui was override by the one present in lianad daemon start method. The latter was moved to the daemon main.rs file.

ACKs for top commit:
  edouardparis:
    Self-ACK 8c0c23e688b02a73393a7172b3f41bfaa2a9c143

Tree-SHA512: b8ea415750c656786b64bc7ea97194f27db37267820f1a413ce6639e48dae542e644958856ffaddd53ab1ad047072a9bcc11ad304c060417b9542d4ee61089a3
2025-05-07 10:27:42 +02:00
Michael Mallan
3d6a22ea05
feat: add rpc command to list revealed addresses 2025-05-07 08:48:34 +01:00
Michael Mallan
4945dba7c0
feat: add command to list revealed addresses 2025-05-07 08:48:31 +01:00
edouardparis
41747538ed
Merge #1686: gui & ci: upgrade managed bitcoind version to 29.0
9411017da5dd775fe358e16c4ad9545343422c44 gui & ci: upgrade managed bitcoind version to 29.0 (thomas)

Pull request description:

  Integration tests has been passed using bitcoin core 29.0 (with tests requirements updated as in #1684).

  Closes #1656.

ACKs for top commit:
  pythcoiner:
    utACK 9411017, tryed on linux, seems it download well 29.0 but my connection to bitcoincore.org is bad, the download always fail, but likely not related to this PR but rather to my poor connection
  jp1ac4:
    ACK 9411017da5dd775fe358e16c4ad9545343422c44.

Tree-SHA512: 2cb183b0da77eaf84c3957ad6cfcac0dc9b0a05d21aebeaf0f9f84d3bf81708a19c1ac6ef0e67a8ca48c71d7196dcf3b3e230ba8eae17da8b9c1bdc74f8af119
2025-05-06 14:26:18 +02:00
edouardparis
9fc7c093ff
Merge #1607: Hint user if the key of signing device is not part of the wallet descriptor
c8e455c8ceb2a7b5408380dbe3cd30ce3959ff57 lianad: add a test for LianaDescriptor::contains_fingerprint() (pythcoiner)
aead34cc8eaa3e74d2c76c7e1e8341d756d779a2 installer: hint the user if the plugged signing device is not part of the descriptor (pythcoiner)
5ae13dd025c2e038e17746f5bfc8cf72ec5120c7 liana-ui: make it more clear when a device key is not part of the wallet descriptor (pythcoiner)
fa8fd4782f97b8969f6a655e0511bf8f96924232 liana: implement LianaDescriptor::contains_fingerprint() (pythcoiner)

Pull request description:

  This PR:
  - [x] Add `LianaDescriptor::contains_fingerprint()` method

  - [x] make more explicit when a signing device is not part of the wallet descriptor

  before (user had to hover the button to see the tooltip):
  ![image](https://github.com/user-attachments/assets/c61a95a0-a9b2-4f85-8245-e5490c7e37af)

  after:
  ![image](https://github.com/user-attachments/assets/1d17775e-6c26-4eeb-83a7-c8621d44c54c)

  - [x] Hint the user in the installer if the plugged device is not part of the created/imported descriptor:

  ![image](https://github.com/user-attachments/assets/e22f0180-513e-48d5-b293-00677e328285)

ACKs for top commit:
  jp1ac4:
    tACK c8e455c8ceb2a7b5408380dbe3cd30ce3959ff57.

Tree-SHA512: 092b8cb6efe6b6a6dc4f8505649783cb7c83c231242ab14f479b573e12cd61bab4e6e27a173bee19097d3ad90a8f1e578ecf4b699a4a481b40588f5f60cb9c71
2025-05-06 14:22:24 +02:00
edouardparis
8c0c23e688 Use gui panic hook 2025-05-06 11:16:57 +02:00
edouardparis
40dc9ae8c0 Delete process internal bitcoind locks in case of panic 2025-05-06 11:16:57 +02:00
edouardparis
0488ed37a3 feat: asynchronous management of internal bitcoind 2025-05-06 10:19:58 +02:00
edouardparis
13709aa302
Merge #1693: gui: review primary buttons in the application
8e98f828a0b61f6a2b2a988118e8557dd33f9d59 gui: review primary buttons in the application (Thomas Ballivet)

Pull request description:

  You can see below the updated GUI. If needed I can make the panel's "Broadcast" button secondary when the broadcast modal is displayed.

  ![Capture d’écran du 2025-05-04 18-04-02](https://github.com/user-attachments/assets/4737af03-c5c9-4bac-a215-3a008bc6a3f8)

  ![Capture d’écran du 2025-05-04 18-03-49](https://github.com/user-attachments/assets/d4bfc3ec-5aff-4957-8748-1171888daab7)

  ![Capture d’écran du 2025-05-04 17-51-13](https://github.com/user-attachments/assets/b7c1b069-0aa0-4c70-8c3e-3cee4636ec9f)

  ![Capture d’écran du 2025-05-04 17-46-38](https://github.com/user-attachments/assets/8c065795-9cf5-4e97-a2f2-8f2a654eba58)

  ![Capture d’écran du 2025-05-04 17-42-08](https://github.com/user-attachments/assets/750f7463-7aba-4287-8474-9f303926a6bf)

  ![Capture d’écran du 2025-05-04 17-41-33](https://github.com/user-attachments/assets/613ee1cc-beb6-4139-9f51-f4323d9224e6)

  ![Capture d’écran du 2025-05-04 17-38-52](https://github.com/user-attachments/assets/db04bfe1-77b6-418b-819a-04b208a9526c)

  ![Capture d’écran du 2025-05-04 17-38-38](https://github.com/user-attachments/assets/b3405548-363e-42cf-9471-26e5094d0fa1)

  ![Capture d’écran du 2025-05-04 17-37-02](https://github.com/user-attachments/assets/0451d4e8-fdbf-49ff-9a78-f9a245611aad)

ACKs for top commit:
  edouardparis:
    utACK 8e98f828a0b61f6a2b2a988118e8557dd33f9d59

Tree-SHA512: 80bed065f3eca6c92273aaa9fd62fd61f31121e14e66325efbcac3b95d2898f52982872debf4d8cf8238f2dd4f37d8858c644f240784888ea63b73a61d0cf487
2025-05-05 10:41:28 +02:00
edouardparis
19043a2db9
Merge #1684: Upgrade pytest
c20318af64fddb2959ba90f2d510af42f4e2e20e Upgrade pytest (thomas)

Pull request description:

  Had issues because of a too old version of pytest-timeout. I had to update it so I took advantage of it to update pytest and other requirements

ACKs for top commit:
  pythcoiner:
    tACK c20318af on arch + python 3.10/3.13

Tree-SHA512: 22e7abf810c49d29f908e493db4055a9fd94d8a623e8a9ae8cfc33e2b9ab1865ad64acb8a2837b0b9b0ed1846b1ba9ea21242ccd7f0a4f4f221041d8465c55bd
2025-05-05 09:29:29 +02:00
Thomas Ballivet
8e98f828a0 gui: review primary buttons in the application 2025-05-04 18:08:15 +02:00
Michael Mallan
75f37708b3
test: implement methods for getting/setting labels 2025-05-02 17:47:11 +01:00
Michael Mallan
16b96b5456
style: apply black formatting 2025-05-02 17:46:49 +01:00
edouardparis
473dd425cc
Merge #1691: refac liana-gui: network flag redirects to launcher
c4715acb047b48e882102e38b67ed9bb37816306 refac liana-gui: network flag redirects to launcher (edouardparis)

Pull request description:

  Adding the network flag to liana-gui command opens now the launcher with the network set instead of trying to run the wallet in the network directory.

  This is preparatory work for the multiple wallet feature.

ACKs for top commit:
  edouardparis:
    Self-ACK c4715acb047b48e882102e38b67ed9bb37816306

Tree-SHA512: dad9b349c55d6e3884e79d9d314f926121c590f8b59a2322b2aee9461cfb2ddcc2d6b3d105d0bde4684fd2e097077cecf0a2f0f365e0ce52b6cadb1dc935d96a
2025-05-02 11:41:23 +02:00
edouardparis
c4715acb04 refac liana-gui: network flag redirects to launcher
Adding the network flag to liana-gui command opens now
the launcher with the network set instead of trying to
run the wallet in the network directory.

This is preparatory work for the multiple wallet feature.
2025-05-02 10:01:25 +02:00
edouardparis
6fe88ad4df
Merge #1683: Add connect cache file
fe14c7807e60a080052ebc94c1e0d160c8db8ed6 pin email in liana connect login (edouardparis)
1746314e7d8ef4e06cc05951dc620d88d280d26e Add liana-connect cache file (edouardparis)

Pull request description:

  This PR introduces a new file in the network directory: `connect.json` where the access tokens per email accounts are stored. Race conditions and potential conflicts to update the file are handle by the crate `async-fd-lock`.

  If the cache is missing (like for a previous liana generated setup), then the user is asked to authenticate again.
  The change does not remove totally the legacy `refresh_token` field in the settings file in order to be backward compatible with previous liana-gui versions.

ACKs for top commit:
  edouardparis:
    Self-ACK fe14c7807e60a080052ebc94c1e0d160c8db8ed6

Tree-SHA512: a4ce6c78e8edd8378f227ae464a5ff0ebd88ee16b519a26f78eb95c9ab5752d14a50ea559902ce5edb9a00452e77b2552c2743a75182a9de825846b5c6f4d06c
2025-05-02 09:36:16 +02:00
edouardparis
fe14c7807e pin email in liana connect login 2025-05-02 09:15:10 +02:00
edouardparis
1746314e7d Add liana-connect cache file 2025-05-02 09:15:10 +02:00
thomas
9411017da5 gui & ci: upgrade managed bitcoind version to 29.0 2025-05-01 17:34:38 +02:00
edouardparis
102a8d841d
Merge #1209: gui: disable replacement fee input if tx is already replaced
ad2c096715da49223f7c2cf3389e575b7e62a064 gui: disable replacement fee input if tx is already replaced (pythcoiner)

Pull request description:

  this PR disable input on feerate TextInput if the tx already have been replaced, it's fine to do so because we still can RBF the new replacing tx.

  ![image](https://github.com/user-attachments/assets/c5ad2ed3-50f0-41e0-924b-261896174900)

  close #1138

ACKs for top commit:
  jp1ac4:
    tACK ad2c096715.

Tree-SHA512: 528dc513ee83a839c86a6dd8d49fa5af61814e7c440d5337d294205269ebcef3d50001a5b41815c95276d4f3e6660d5f5e081456feb77843b527d8f9eed897b8
2025-05-01 14:09:40 +02:00
pythcoiner
ad2c096715
gui: disable replacement fee input if tx is already replaced 2025-05-01 10:52:36 +02:00
edouardparis
699b130d51
Merge #1682: ci: use self-hosted runner for integration tests
eac6cdd197d75e957387db77126d2f258fd1bb27 ci: use self-hosted runner for integration tests (pythcoiner)

Pull request description:

  this PR:
   - move integrations tests from cirrus to a self hosted github worker (this solve many of the "timeout" errors)
   - remove usage of docker: the worker run directly on the host machine (this solve almost remaining issues and cut integration test running time by half)

ACKs for top commit:
  edouardparis:
    ACK eac6cdd197d75e957387db77126d2f258fd1bb27

Tree-SHA512: 94035ed7b80c71b57c8507a64088898da7e7a8d6c83269a60abd330f592ad83ef032b7943bd3d2276494b568249194f816f6c4a109b27a5d1788075fecb3aba9
2025-04-30 13:50:00 +02:00
edouardparis
ecd843c689
Merge #1420: gui(installer): change collapse icon from left arrow to righ arrow
53e773a0ff28d0428b32fd57b13df1fec93f851e gui(installer): change collapse icon from left arrow to righ arrow (pythcoiner)

Pull request description:

  Fixes #1416

  ![image](https://github.com/user-attachments/assets/8bcc3cbe-0db5-41aa-bd54-7e1a069aaaa9)

ACKs for top commit:
  edouardparis:
    utACK 53e773a0ff28d0428b32fd57b13df1fec93f851e

Tree-SHA512: 391e4260080be40d70f48b20f9648f09249c3a9d7262fafde45cd0f40857c701c268234a2e5ccca6f13365db440135ca238532a309d1bafdbfc0958efbfb8bf7
2025-04-30 11:15:04 +02:00
pythcoiner
53e773a0ff
gui(installer): change collapse icon from left arrow to righ arrow 2025-04-30 11:10:17 +02:00
pythcoiner
eac6cdd197
ci: use self-hosted runner for integration tests 2025-04-30 10:34:54 +02:00
pythcoiner
c8e455c8ce
lianad: add a test for LianaDescriptor::contains_fingerprint() 2025-04-30 08:02:24 +02:00
pythcoiner
aead34cc8e
installer: hint the user if the plugged signing device is not part of the descriptor 2025-04-30 08:02:24 +02:00
pythcoiner
5ae13dd025
liana-ui: make it more clear when a device key is not part of the wallet descriptor 2025-04-30 08:02:23 +02:00
thomas
c20318af64 Upgrade pytest 2025-04-29 17:11:35 +02:00
edouardparis
4de0d7bd29
Merge #1680: bump async-hwi 0.0.28
9f619f2a79be887b5d795b7c2e45c3f0c5b35a9a bump async-hwi 0.0.28 (edouardparis)

Pull request description:

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

Tree-SHA512: 4df44c9e5f18a4f12c47e86a3560fe519de0698247c49a41ff48909f23ead57ac9be5dd2ba511535413685ffdfedebf6d0a685f1dbab812cef1725cef8aab49a
2025-04-29 15:51:09 +02:00
edouardparis
9f619f2a79 bump async-hwi 0.0.28 2025-04-28 18:30:15 +02:00
edouardparis
3da69f0cec
Merge #1668: Small fixes and improvements to the Recovery panel UI
356301c79c6f621e8329287f70a112ddbb16d43d feat: add brief overview of recovery feature (Michael Mallan)
30aedb3e5b8b10cb0df9f937a5d362fccb91bf34 fix: use singular for one coin (Michael Mallan)
eb45d6ef8f50ea4384b1f5ce9fd4f0c0aaf98237 fix: show tooltip above to improve legibility (Michael Mallan)
ea8e8453d7ae59862f326f8e5111fd3d0b5ea9cc fix: clarify available recovery paths wording (Michael Mallan)

Pull request description:

  This fixes and implements the items from #1664, except for the alias refresh, which is covered by #1667.

ACKs for top commit:
  edouardparis:
    utACK 356301c79c6f621e8329287f70a112ddbb16d43d

Tree-SHA512: ca5c71d214126e9447e48be5be9294c72b046136223f5b7848ee458c726ebf316042c612763a5c1a146450c15a566e56a2521bd2f0c2b6e0a04c7dcbc40163f7
2025-04-28 11:58:05 +02:00
edouardparis
47dd98ebfb
Merge #1674: Use type wrapper instead of PathBuf for directories
bb7777878ea639def09a50f52fdd338467e8a87d Use type wrapper instead of PathBuf for directories (edouardparis)

Pull request description:

  With the multiplicity of directories, liana directory, network directory and in the future per wallet lianad directories, passing a simple type PathBuf does not transmit to the contributors the information about which directory each module works with.

  This commit introduces wrappers around PathBuf
  to give this information and link parent directories to their child directories.

ACKs for top commit:
  jp1ac4:
    ACK bb7777878ea639def09a50f52fdd338467e8a87d.

Tree-SHA512: 3ed1e8a1e56f238c51768b9aef64a826527a89dc584976085db5cd8f8823f71910ee2e94fc09c78f7ce8de34535c9e416883a84a3a18430d1505a02ab2f88fb9
2025-04-28 11:41:57 +02:00
edouardparis
bb7777878e Use type wrapper instead of PathBuf for directories
With the multiplicity of directories, liana directory,
network directory and in the future per wallet lianad
directories, passing a simple type PathBuf does not
transmit to the contributors the information about
which directory each module works with.

This commit introduces wrappers around PathBuf
to give this information and link parent directories
to their child directories.
2025-04-28 11:14:35 +02:00
edouardparis
55ccf23f86
Merge #1672: Fix sliders background color
7664567d41e54a79fd62a46077feea3f6ec28196 Fix sliders background color (use light grey) (thomas)
8a9dc083ab5a07cca9a0ddc699d5f5b83bfaf1ad Fix sliders background color (thomas)

Pull request description:

  You can see here the black background for the slider :

  ![Capture d’écran du 2025-04-24 14-39-48](https://github.com/user-attachments/assets/70054cf8-c0b7-4f4c-8eab-bb25117fa832)

  Closes #1670

ACKs for top commit:
  pythcoiner:
    utACK 7664567

Tree-SHA512: 2c0954ab0d4571d19cc84e58f1ba6fe0a66aacdc3a4cd95a90caf3f63768724a3ce98ad47a4ac786519c6eda6f12726299ebd2ac6688da41b7de857916248432
2025-04-28 09:50:10 +02:00
edouardparis
afaf29f889
Merge #1667: fix: ensure spend (& recovery) panel steps use latest fingerprint aliases
7d2a1d4d315819ad18c040c7ee3e2830b40d8d6f fix: ensure spend panel steps use latest wallet (Michael Mallan)

Pull request description:

  This fixes one of the items from #1664, but it's a little different from the other items there so I felt a separate PR would be better.

  This fixes an issue for the Recovery panel that was introduced by #1658, but which was already present in the Send panel. If, while creating a regular spend, the user edits the fingerprint aliases, these updated aliases would not have shown in the signing info of the draft PSBT. For a recovery, this issue arises on the first step when selecting a recovery path, where the aliases are shown for each key required on that path.

  The issue arises because the `wallet` field of individual steps was not being updated.

  Now, the `wallet` will be stored by `CreateSpendPanel` and used by `load()` when moving between steps. Furthermore, the `WalletUpdated` message will be used to update the current step directly.

ACKs for top commit:
  edouardparis:
    utACK 7d2a1d4d315819ad18c040c7ee3e2830b40d8d6f

Tree-SHA512: c7b4d3da57bb3e856d101128f581ec3df055d1e2892ec3f1ba04550495250ed9bd9d5193760d0883224e0368a7cd425dfa010fc214e204f764176b975c66d515
2025-04-24 17:34:32 +02:00
thomas
7664567d41 Fix sliders background color (use light grey) 2025-04-24 16:36:36 +02:00
thomas
8a9dc083ab Fix sliders background color 2025-04-24 14:43:06 +02:00
Michael Mallan
7d2a1d4d31
fix: ensure spend panel steps use latest wallet
The wallet is used in some steps to get fingerprint aliases.

The recovery panel previously handled a wallet update, but this
was omitted when making the recovery panel part of the spend
panel.

This bug already existed for the final step of a regular spend
where the signing information would show old aliases if these
were updated while defining the spend.
2025-04-24 13:31:10 +01:00
edouardparis
b2f28b94d1
Merge #1671: Refac services module
7085542066006d1d0debbe6fff0b3463ace834f1 Move lianalite to services::connect module (edouardparis)
f3ae84f91c2028d8e53da0d096867c8cf13a54c4 Move keys service to its own submodule (edouardparis)

Pull request description:

  Move the current client implementation for https://keys.wizardsardine.com from `services` to `services::keys`.
  Move the liana-connect client implementation to `services::connect`

ACKs for top commit:
  jp1ac4:
    ACK 7085542066006d1d0debbe6fff0b3463ace834f1.

Tree-SHA512: 853f8cde9de768f0b087125b7ae9a5aae3fec9a5d6085ccf0ae72e6b75c7833424ddf482bcc9eefeea05f35ef59b65727af8f6e0af1efcf0a95217f3d9b74b2c
2025-04-24 14:13:25 +02:00