470 Commits

Author SHA1 Message Date
jp1ac4
8639f9b94f
gui: prevent spend with duplicate addresses
Previously, if duplicate addresses were entered when creating
a new spend, the user could click Next and only the second
amount would be used for the draft PSBT.

This prevents the user clicking Next if there are duplicate
addresses and stops the redraft function running.
2024-02-22 12:29:52 +00:00
edouardparis
c1e2d26c63
Merge #950: [GUI] Add index into qrcode
7483988c53ee6201438283eff496302b7e647176 add index into qrcode (pythcoiner)

Pull request description:

  fixes #838

ACKs for top commit:
  edouardparis:
    utACK 7483988c53ee6201438283eff496302b7e647176

Tree-SHA512: f33dd29f2857cab08c09eca03dcb208937b6b13da9e4ef811cbc4e8e4f6bbb73f1eee629736d98bf00bd9b65be5e96987c18ede42d20c9f486c5ec4e47ada275
2024-02-20 15:32:26 +01:00
jp1ac4
0c665f9c3c
gui: bump dependencies to fix nightly build 2024-02-09 09:37:01 +00:00
edouardparis
3fcbb0b67d
Merge #954: [GUI] Add version args
601bd08c0c1b5b86f4a016fa8d4acb080416cd83 add -v / --version args (pythcoiner)

Pull request description:

  fixes #896

  ![image](https://github.com/wizardsardine/liana/assets/124568858/c90ff9ff-41b9-41f3-8938-387c0eb81f38)

ACKs for top commit:
  edouardparis:
    ACK 601bd08c0c1b5b86f4a016fa8d4acb080416cd83

Tree-SHA512: ca54927141bc1115fae04480dbe1867cafd30955278e1845d4170079d4ce13300e722b11bbe73f85e1e8862f0b5576a14a1b5bb5997bf23e33dc8af6320cbc36
2024-02-02 15:49:49 +01:00
pythcoiner
601bd08c0c add -v / --version args 2024-02-02 14:46:22 +01:00
edouardparis
a88963cd77
Merge #952: gui: do not display hw error on simple user refusal
3a30a36ce5f58e8ae2c92926384d76253e702894 gui: do not display hw error on simple user refusal (edouardparis)

Pull request description:

  close #937

ACKs for top commit:
  edouardparis:
    Self-ACK 3a30a36ce5f58e8ae2c92926384d76253e702894

Tree-SHA512: c2c1aed212b9389bac62da17552daa6d87d0eeea6180ec19e37dd9ef4dd0faa935a621123df6306ef9ca6fadffba35c1c047d2906a9c15db3a14cd8ccf156e29
2024-02-02 11:55:01 +01:00
edouardparis
7bef08797b
Merge #951: gui(installer): clear checkbox if descriptor is changed
416dc9d2d83c3b06ce7e7f5e282a5b9251fa303d gui(installer): clear checkbox if descriptor is changed (jp1ac4)

Pull request description:

  Currently, once the box has been ticked to confirm the descriptor has been backed up, it remains ticked even if the user goes back and changes the descriptor.

  This PR will clear the checkbox if the descriptor is changed so that the user knows it needs to be backed up

ACKs for top commit:
  edouardparis:
    ACK 416dc9d2d83c3b06ce7e7f5e282a5b9251fa303d

Tree-SHA512: c8d2be242ada364fe97b0846912420ea206f03f82290dbb87ce513746b8f555f8993d906cd38d27cba513414940bd8984282fc26389608939d89fb252f4c1049
2024-02-02 11:52:14 +01:00
edouardparis
3a30a36ce5 gui: do not display hw error on simple user refusal
close #937
2024-02-02 11:32:39 +01:00
jp1ac4
416dc9d2d8
gui(installer): clear checkbox if descriptor is changed 2024-02-02 10:23:43 +00:00
pythcoiner
7483988c53 add index into qrcode 2024-02-02 10:40:09 +01:00
jp1ac4
fde28bf571
gui(transactions): get prev feerate from tx instead of param 2024-02-01 17:00:38 +00:00
jp1ac4
dc817dee3b
gui(transactions): check for direct descendants before rbf 2024-02-01 16:59:55 +00:00
jp1ac4
881d9a74a2
gui(psbt): check for conflicting txs before broadcast 2024-02-01 16:59:02 +00:00
jp1ac4
beabf08cbf
gui: match on message for PsbtState 2024-02-01 16:02:56 +00:00
jp1ac4
9e5872c56f
gui(transactions): reword rbf modal message 2024-01-31 16:06:16 +00:00
jp1ac4
c50954e910
gui(transactions): split strings across multiple lines
This is easier to read and ensures `cargo fmt` works.
2024-01-31 16:06:15 +00:00
edouardparis
6dd1d87228 gui: reuse labels for rbf psbt
close #861
2024-01-31 14:27:12 +01:00
edouardparis
dc2fb2ac46 gui: move rbf in iced command 2024-01-31 14:27:12 +01:00
edouardparis
69fd1891f3 If date prior to genesis block timestamp, rescan from genesis 2024-01-31 11:07:06 +01:00
edouardparis
18f2fe4572 gui: display error for rescan past pruned height
close #900
2024-01-30 17:06:01 +01:00
jp1ac4
cb5073c83a
gui(spend): use create_spend_tx for missing amount 2024-01-30 13:45:09 +00:00
jp1ac4
fae32df086
gui: pass change_address param to createspend 2024-01-29 15:53:49 +00:00
edouardparis
366e9b7d49 gui: use descriptor method to detect psbt change outputs
This commit also fix handling of create_spend result while
updating liana:master

close #841
2024-01-25 17:01:43 +01:00
edouardparis
24f67d2a85 Fix error message when importing desc for wrong network
close #781
2024-01-24 13:48:05 +01:00
edouardparis
a7b8486079 fix panic for managed bitcoind on network change
close #934

Co-authored-by: jp1ac4 <121959000+jp1ac4@users.noreply.github.com>
2024-01-23 17:24:28 +01:00
edouardparis
8146269296 Reset bitcoind default settings on network change
close #812
2024-01-23 15:38:28 +01:00
edouardparis
9814b6efc4 gui: async-hwi 0.0.14 2024-01-23 11:50:43 +01:00
edouardparis
3196a8025e gui: bump liana:master and async-hwi:master 2024-01-22 15:49:56 +01:00
edouardparis
99bc44d2b1 gui: remove base64 dep 2024-01-22 12:20:22 +01:00
edouardparis
1526d15768 fix clippy errors for rust 1.74 2024-01-22 12:20:13 +01:00
edouardparis
7ca6cc8dfa
Merge #847: Add coldcard
07eba96ebf1c4a9c520c4686602fc3a56cf262c7 fix clippy error (edouardparis)
0f7a89db6423532f17b0a5337327ec656f7edd15 gui: use async-hwi:master (edouardparis)
386b1c9ec5d3fa690b1fdaf232f85793e7e12ed2 Add coldcard device to supported hws (edouardparis)

Pull request description:

ACKs for top commit:
  edouardparis:
    Self-ACK 07eba96ebf1c4a9c520c4686602fc3a56cf262c7

Tree-SHA512: 44abdcc0def4904b31290875fd4c8a74da402e4cbfa75daae1f656bdf80e5526311c67b6467105382bd416251ef2446a97db30f4ed3b8b1ed015e3c9e3eb11b8
2024-01-16 16:38:03 +01:00
edouardparis
07eba96ebf fix clippy error 2024-01-16 16:17:29 +01:00
edouardparis
0f7a89db64 gui: use async-hwi:master 2024-01-16 15:15:33 +01:00
Antoine Poinsot
6c1430e8bc
Merge #919: Go directly to installer if datadir empty
ca583cd847c757ff5b4f6e9db15ce714d825c1a7 go directly to installer if datadir empty (pythcoiner)

Pull request description:

  address #263, now if there is a .liana dir already existing but not network folder (`bitcoin`/`testnet`/`signet`/`regtest`) inside, liana start directly into installer (before is was starting the launcher even if no network to launch, and displaying a weird 'Install liana on another network')

ACKs for top commit:
  darosior:
    ACK ca583cd847c757ff5b4f6e9db15ce714d825c1a7 -- as per Edouard's review

Tree-SHA512: e4c7725c277082fa354bb9397744dfa92e90c14e96b21cad31cb3e111424de15b9aeab1a4d775a59efcf43b385616852e64b1cd2d184f1ddef4be5348d380218
2024-01-15 23:37:54 +01:00
pythcoiner
ca583cd847 go directly to installer if datadir empty 2024-01-15 22:13:29 +01:00
edouardparis
ffbbaa8285
Merge #850: Gui show transaction detail while signing
7d97f466ef174f5c9a7f57f757f737cf66ff5d81 ui: add processing hw notification to components (edouardparis)
1ea292f058475e2a1139328f33133397f9fe7bde gui: merge psbt signatures instead of override full psbt (edouardparis)
a539cfe157bff1b765520514d6ed854a2603ec42 Add ui component toast from iced repo examples (edouardparis)
71bc585ed350cf22c6aef8a34596c984777f02a6 encapsulate psbt actions in enum (edouardparis)
e55269def7d4becd267505321eef37b9553a6393 Make psbt action components handle the whole view (edouardparis)

Pull request description:

  Fixes https://github.com/wizardsardine/liana/issues/644.

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

Tree-SHA512: 497e1edafa2755e39498b5cfb0e90c978a5575fcdc544ee478af3468f39097133de6595db739fdc2ec004d3a8a0b3be715c389a44c745d8ba4802aa44612e20a
2024-01-15 18:07:07 +01:00
edouardparis
3076d2d322
Merge #908: gui(daemon): fix rbfpsbt params for external daemon
5c06eef586ebd540f14f3ded4d3639dcbcfb0209 gui(daemon): fix rbfpsbt params for external daemon (jp1ac4)

Pull request description:

  The `is_cancel` parameter gives an "invalid parameter" error when converted to string.

  The `feerate_vb` parameter should only be passed if it has a value as otherwise it gives an "invalid parameter" error.

ACKs for top commit:
  edouardparis:
    utACK 5c06eef586ebd540f14f3ded4d3639dcbcfb0209

Tree-SHA512: 73d192186ffac19c560cf7dd0aef8ae5c276bc6ff09852d7b1bc59aa23fe9f980c11e53654fc20fdc41ab2fee9f4433a91591c869ba0aebade8f2febce2121b5
2024-01-15 14:41:57 +01:00
edouardparis
7d97f466ef ui: add processing hw notification to components 2024-01-15 11:58:51 +01:00
Aaron Carlucci
b4f505c431 Change text when downloading Bitcoin to include version number
Minor formatting fix

Text change to specify 'Bitcoin Core' during installation download
2024-01-12 18:54:50 +01:00
edouardparis
1ea292f058 gui: merge psbt signatures instead of override full psbt
While signing in parallele, only new signatures should
be appended without race condition.
2024-01-12 15:56:46 +01:00
edouardparis
a539cfe157 Add ui component toast from iced repo examples 2024-01-12 15:56:46 +01:00
edouardparis
71bc585ed3 encapsulate psbt actions in enum 2024-01-12 15:56:46 +01:00
edouardparis
e55269def7 Make psbt action components handle the whole view 2024-01-12 15:56:46 +01:00
edouardparis
386b1c9ec5 Add coldcard device to supported hws 2024-01-09 15:49:21 +01:00
jp1ac4
5c06eef586
gui(daemon): fix rbfpsbt params for external daemon 2024-01-08 15:40:24 +00:00
Antoine Poinsot
051957ede7
Merge #898: gui: support user/password for RPC authentication
838550b917d96a6a6d11f5d0103c53706acd9a8c gui: change radio border color (jp1ac4)
38198cc79f29fd13b52f963ce8fe7da2567b3bb4 installer: support user/password RPC authentication (jp1ac4)
3ccdafbda235730ec95d6f2992808beb2eb51aa9 gui: support user/password RPC authentication (jp1ac4)

Pull request description:

  This adds support to the GUI for user and password RPC authentication as part of #356.

  The first commit adds the user/password option to the settings page, and only updates the installer as required for it to compile. It also changes how the managed bitcoind gets the cookie location when starting so that it doesn't rely on the config file.

  The second commit adds the user/password option to the installer when using a self-managed node.

  Updating the managed node to use user/password can be done in a follow-up PR.

ACKs for top commit:
  darosior:
    ACK 838550b917d96a6a6d11f5d0103c53706acd9a8c

Tree-SHA512: 412e167351807bc319d33a0f7ddb34f522f4b146c95f78877936ff476ce2a8d5ef68d359608ad7d3f1ddf4ca9b6a94e035d594ffc464c0fd5940c252d3c4de39
2024-01-03 14:54:17 +01:00
edouardparis
95fd0023da
Merge #899: gui(settings): load updated bitcoind settings after saving
bd9d9f2168fcc2cac965f40a561e550752ff33e6 gui(settings): load updated bitcoind settings after saving (jp1ac4)

Pull request description:

  Currently, the Bitcoin Core settings page doesn't show the updated values after saving changes and needs to be reloaded in order to refresh. This change makes the Bitcoin Core settings page reload after changes are saved so that they are shown immediately.

ACKs for top commit:
  edouardparis:
    ACK bd9d9f2168fcc2cac965f40a561e550752ff33e6

Tree-SHA512: f0547a8a52a4cafdf0d464301ef3574f502c262a2238d5100edd960701cb155b5d71db495a740fa074181254ebba2a3d90ddfad7e1897eaab0f6143bb0ccc457
2024-01-03 10:57:12 +01:00
jp1ac4
838550b917
gui: change radio border color 2023-12-28 17:22:40 +00:00
jp1ac4
38198cc79f
installer: support user/password RPC authentication
If using a self-managed node, this adds the option to authenticate
with the RPC server using user and password.
2023-12-28 17:22:40 +00:00
jp1ac4
3ccdafbda2
gui: support user/password RPC authentication
This change updates the GUI to support the latest lianad config
file with the user/password option for bitcoind RPC authentication.

The settings have been updated to set either cookie file path
or user and password.

The installer still only supports the cookie file and has only
been updated with the changes required to compile.

When starting, the internal bitcoind now looks for the cookie file
in the usual location rather than relying on the config file.
2023-12-28 17:22:39 +00:00