387 Commits

Author SHA1 Message Date
jp1ac4
9e2407eb8a
gui: auto-select coins for spend 2023-11-15 20:01:30 +00:00
Antoine Poinsot
73f168bd09
gui: view: fix the display of PSBT missing signatures
The analysis was wrongly displayed. For instance it could display a
fingerprint as having both signed and not signed yet.

Clean up the code and fix the analysis.
2023-11-02 13:10:20 +01:00
jp1ac4
bdd16c73bc
installer: start new bitcoind download if not finished
In case user clicks on Previous before bitcoind download has
finished, this will clear the incomplete download from
`InternalBitcoindStep` so that a new download will start if the
user returns to this step.
2023-11-01 18:07:32 +00:00
Antoine Poinsot
cf9404558f
Merge #773: gui: don't read bitcoind's stdout to avoid a deadlock
d0065898f70fbe14be7d269a686110e3bbbe7af8 loader: don't read bitcoind's stdout to avoid a deadlock (edouardparis)

Pull request description:

  "Forward port" of #770.

  It was possible to get into a state where we were waiting for lianad to start, which was waiting on a response from bitcoind which in turn was waiting on the GUI to make room in its piped stdout buffer. Deadlock.

  Instead of getting its logs from stdout, read its debug.log file.

ACKs for top commit:
  edouardparis:
    ACK d0065898f70fbe14be7d269a686110e3bbbe7af8

Tree-SHA512: 0c66190ba87b56b883d15463ad24e152e43b33bf235ba8fb2cab6978c6eace1fdf3b6280377548a92248b18b0fa05bd4ad698cb65beac92bb5f11bc8a4662052
2023-11-01 16:28:35 +01:00
edouardparis
d0065898f7
loader: don't read bitcoind's stdout to avoid a deadlock
It was possible to get into a state where we were waiting for lianad to
start, which was waiting on a response from bitcoind which in turn was
waiting on the GUI to make room in its piped stdout buffer. Deadlock.

Instead of getting its logs from stdout, read its debug.log file.

Co-Authored-By: Antoine Poinsot <darosior@protonmail.com>
2023-11-01 15:53:53 +01:00
edouardparis
a14f3afa2a installer: do not reload last step on next message
If a user clicked very fast a lot on the Next button
to trigger multiple Next messages, then the last
step of the install reloads multiple time.
This commit introduce a check that ignore next message
if the step is the last one.
2023-11-01 15:29:54 +01:00
edouardparis
c861368802
Merge #769: fix single payment output label
d56a9a8a40671ad0ab0f4d8ccb8c6fa861d40429 fix single payment output label (edouardparis)

Pull request description:

  When a transaction has only one payment,
  then its txid label is attached to the payment label. While modifying the label of an output it did not change the whole transaction label, which is a bug.

  backport of the fix for 3.x in #768

ACKs for top commit:
  edouardparis:
    Self-ACK d56a9a8a40671ad0ab0f4d8ccb8c6fa861d40429

Tree-SHA512: 0c2bca6f2a5527c37653c3644907926f6dacd01f826a2538a78c898fda407e49dceb40614ef8389ae7663228da1c1121decf4be21dc8e0f9a44fd788b3c76972
2023-10-31 15:47:33 +01:00
edouardparis
f6b89ce699
Merge #765: fix gui: update labels if user signed an unsaved tx
789f952433d7ccc0f09924359bd87b83b0bdcf55 fix gui: update labels if user signed an unsaved tx (edouardparis)

Pull request description:

  It is a fix from #760

ACKs for top commit:
  edouardparis:
    Self-ACK 789f952433d7ccc0f09924359bd87b83b0bdcf55

Tree-SHA512: 3424577ba6d3215a3b7503a0861997ace0dbac0a82b0e43af5bc5fb5262450ab5074eaa54ce6a01021237b85dfb163d4eb436916d17f52b9dfd1a07cf7be269c
2023-10-31 15:46:46 +01:00
edouardparis
d56a9a8a40 fix single payment output label
When a transaction has only one payment,
then its txid label is attached to the payment label.
While modifying the label of an output it did not change the
whole transaction label, which is a bug.
2023-10-31 15:11:43 +01:00
edouardparis
9a4b665fa1 fix wallet name in settings during install 2023-10-30 19:03:24 +01:00
edouardparis
789f952433 fix gui: update labels if user signed an unsaved tx 2023-10-30 18:57:54 +01:00
edouardparis
976894e4c5
Merge #755: gui: add shell.nix to track dependencies
5bb96950b4d99a92e61e48a077b4236d9e3619c7 gui: add shell.nix to track dependencies (edouardparis)

Pull request description:

ACKs for top commit:
  edouardparis:
    Self-ACK 5bb96950b4d99a92e61e48a077b4236d9e3619c7

Tree-SHA512: b40b0f82631e45308f0690ea08ae2a0ab602dd7f9a108ba08ab6432797c92802c249d79ddf36247b560c51f336b715bf448185c864583e0e7cecbfdb7c6d7c3d
2023-10-30 15:35:41 +01:00
Antoine Poinsot
99bbb76228
gui: prune bip32 derivations when signing with BitBox02
It can otherwise lead to the BitBox02 not signing for the correct public
key. See
https://github.com/wizardsardine/liana/pull/706#issuecomment-1744705808
for details.
2023-10-30 14:01:37 +01:00
Antoine Poinsot
b8d6be82a7
gui: update to latest Liana 2023-10-30 14:01:36 +01:00
edouardparis
5bb96950b4 gui: add shell.nix to track dependencies 2023-10-30 13:42:34 +01:00
edouardparis
1cbbb8c0be wallet: load name from settings 2023-10-30 13:26:21 +01:00
jp1ac4
fbec5e9218
gui: bump managed bitcoind version to 25.1 2023-10-26 11:32:25 +01:00
jp1ac4
1808f8f1de
gui: allow to bump managed bitcoind version
This makes it possible to bump the managed bitcoind version used
when installing a new Liana wallet.

The GUI will look for the most recent managed bitcoind version
available when starting bitcoind so that existing wallets
with a previous managed bitcoind version will not be affected.
2023-10-26 11:32:24 +01:00
edouard
1a59d03858
Merge #706: Add bitbox support
4be74ad496692d371adffcc1b3c868ef6a01cb52 refac hw module and add bitbox support (edouard)

Pull request description:

  - Add bitbox02 as possible signer to liana-gui
  - Introduce global_settings.json in datadir to keep the bitbox noise config.

ACKs for top commit:
  edouardparis:
    Self-ACK 4be74ad496692d371adffcc1b3c868ef6a01cb52

Tree-SHA512: e0615e1903baa7faecc25db717f49ed71c23a6afcec607c41ac2045cfb2cfa9a9aa3d3452cc952aeaf72a735d670c56dbf19b239c8d665466a2ecb09fbe222c5
2023-10-24 17:46:37 +02:00
edouard
4be74ad496 refac hw module and add bitbox support 2023-10-24 17:23:57 +02:00
edouard
2f2975c279 coinbase transaction outputs may not have valid scripts 2023-10-24 17:09:33 +02:00
edouard
15851383a7 Single Add label button 2023-10-24 15:32:41 +02:00
edouard
b88781e628 remove font bold for labels 2023-10-23 18:28:53 +02:00
edouard
8e806404c4 change labels font weight for lists 2023-10-23 18:21:10 +02:00
edouard
c170f7b25b fix psbt labelling for single payment 2023-10-23 16:45:09 +02:00
edouard
28aaca919a gui: update liana:master 2023-10-23 16:17:57 +02:00
edouard
0873cdb944 disable confirm button if label len > 100 2023-10-23 16:17:57 +02:00
edouard
1aae2a52da Add From: txid label for coin selection view 2023-10-23 16:17:57 +02:00
edouard
07fbc0c1b3 Attach outpoint and txid labels for single payment transaction 2023-10-23 16:17:57 +02:00
edouard
bdac902307 Change coin change labelling 2023-10-23 16:17:57 +02:00
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
9895b493f1d79ae8fc5a1591ef455ccda2d81ccd gui: trim text input strings (jp1ac4)
d3f2931375ff95c201a60164bf1015f18c6e87ce 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 9895b493f1d79ae8fc5a1591ef455ccda2d81ccd

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
f771e674faccf150a5210b3abe829d443619c3e6 gui(installer): restrict clicking previous on final step (jp1ac4)
45f91216d5d0991d7aebde8d4c8bc99edaf5521a gui(installer): remove unused fields from final step (jp1ac4)
03c2bd76b8c6c1b721014afb37da7732ddfeb0cd 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 f771e674faccf150a5210b3abe829d443619c3e6

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
eebf0c20350554f422a028076a460b19f88a7c34 contrib: adapt GUIX build for iced_futures patch (edouard)
df849ba960ace67615a452970ffd2f323a53974e gui: use patch for iced_futures (edouard)

Pull request description:

  from #685

ACKs for top commit:
  darosior:
    ACK eebf0c20350554f422a028076a460b19f88a7c34 -- 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
9ac00d6996442cfe7b35efa80002e1794c549623 async-hwi 0.0.11 (edouard)

Pull request description:

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

Tree-SHA512: 6e3850ed7ec182bc7beddae01f8357bff92676f24fd70018098f8cb25da09d551a877f0f5cf9da86255d62cf46416ff549bc5952fc692a30af47731ce136740d
2023-09-06 15:34:09 +02:00