495 Commits

Author SHA1 Message Date
jp1ac4
a997a7bcff
gui: don't rely on cookie to check successful start 2024-03-11 11:35:12 +00:00
jp1ac4
5e5c3330ee
gui: use rpcauth in installer for internal bitcoind 2024-03-11 11:35:12 +00:00
jp1ac4
7584b6347b
gui: start internal bitcoind with given config
This will allow bitcoind to start also in case of using rpcauth.

The cookie file is canonicalized in the installer beforehand
instead.

There is now no need for the config parameter to be mutable.
2024-03-11 11:35:12 +00:00
jp1ac4
b5980fbc4f
gui: add sections check to internal bitcoind config test 2024-03-11 11:35:11 +00:00
jp1ac4
c3aad0f40c
gui: add optional rpcauth to internal bitcoind config
With the updated liana dependency, we also need to pass `None` to
`list_spend_txs`.
2024-03-11 11:35:11 +00:00
jp1ac4
e172ecd2f1
gui: move internal bitcoind config to bitcoind module
As part of this change, the struct fields were made public.
2024-03-11 11:17:18 +00:00
edouardparis
0c1a1b8d6d gui: add redirection to selected transaction panel 2024-03-06 16:37:11 +01:00
edouardparis
18e040e51f fix: override unpaginated pending events and txs
pending events and txs are passed unpaginated and
in full list through PendingTransactions and PendingPayments.
It is useless and armful to append to them to an existing
list of pending events as a new rbf replacement event should
override the previous one and only one of them must be displayed.
2024-03-06 15:32:06 +01:00
edouardparis
2995df870f fix psbts panel: keep list of psbts in background
fix this comment:
https://github.com/wizardsardine/liana/pull/959#issuecomment-1964811858

new_preselected is changed for a preselect method that keeps the
current state of the psbts list panel and open the modal with the
selected psbt.
2024-03-06 15:32:06 +01:00
edouardparis
a6832ad0b7 fix send panel: reload coins
When going back to send panel, coins are fetched
again and passed to DefineSpendStep. A redraft
is triggered because some coins may have been
removed from the list and new coins were deposited.
2024-03-06 15:32:06 +01:00
edouardparis
710883b6a2 Restart spend process according to current state
Spend process keeps its state if it is the first step.
User can click on Clear to reset if he wants.
2024-03-06 15:32:06 +01:00
edouardparis
a91fdd791a Encapsulate cache with its own message 2024-03-05 11:32:10 +01:00
edouardparis
dc3d29e3f0 Remove spend_txs from cache 2024-03-05 11:32:10 +01:00
edouardparis
2d2cd12bda Restart new spending process on user demand 2024-03-05 11:32:10 +01:00
edouardparis
ed363963b3 Change state load method for reload 2024-03-05 11:32:10 +01:00
edouardparis
c15424abe5 fix clippy 2024-03-05 11:32:10 +01:00
edouardparis
fa4483a4b7 gui: add reload cycle to reset state
When user clicks on the sidebar menu
of the current panel, he expects the
view to reset to its initial state
without modal of transaction detail
for example.
2024-03-05 11:32:10 +01:00
edouardparis
c268c3a093 gui: load receive panel only once 2024-03-05 11:32:10 +01:00
edouardparis
9b4b6fef1b gui: refac app, keep all states 2024-03-05 11:32:10 +01:00
edouardparis
3420c54793
Merge #974: gui: add max button for spend recipients
46cd0f4923c5fe59a5ff08134c850d9a9ceb345a gui: add max checkbox for spend recipients (jp1ac4)
83fa9a9c924bb1326b859f1d2d5aac58c291e960 gui: unset amount left to select if form invalid (jp1ac4)
fba77a30e2aa9984cbda0fdaf40736ff1b0e57c4 gui: check if feerate is already set (jp1ac4)
d9b8285fac1288e895d4b460646f73c664d1a2ff gui: fix cargo fmt (jp1ac4)

Pull request description:

  This adds the MAX button from #546.

  The max amount is calculated within the `redraft` function based on the change output. The recipient's amount is updated directly within this same function in order to avoid another call to `redraft` after updating the amount.

  The MAX button only takes effect once when the user clicks it. If further changes are made (e.g. to feerate or other recipients), the value will not update and the user will need to click MAX again.

  Currently, the MAX button is always clickable. It would be possible to determine for each recipient whether the MAX button should be clickable for that recipient (feerate is valid and all other recipients are valid and no duplicates), but it's not a trivial change so I'm not sure if it's worth doing as I think the behaviour is quite intuitive.

ACKs for top commit:
  edouardparis:
    ACK 46cd0f4923c5fe59a5ff08134c850d9a9ceb345a

Tree-SHA512: 16f22804d630686427da196fd1627287e2e20f2e122602c385157064323113b27b9ec9c56ada162acb55d11b8084667ee3f1a9f992a2f4eef70f25c6f7a5b20b
2024-03-04 16:20:57 +01:00
jp1ac4
46cd0f4923
gui: add max checkbox for spend recipients 2024-03-04 14:55:37 +00:00
jp1ac4
83fa9a9c92
gui: unset amount left to select if form invalid 2024-03-01 11:11:23 +00:00
jp1ac4
fba77a30e2
gui: check if feerate is already set 2024-03-01 11:11:23 +00:00
jp1ac4
d9b8285fac
gui: fix cargo fmt 2024-03-01 11:11:22 +00:00
jp1ac4
85f5a68ed3
gui(spend): display warnings for draft PSBTs 2024-02-27 14:55:17 +00:00
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