1820 Commits

Author SHA1 Message Date
Michael Mallan
341f940664
func test: prevent disconnects when using mocktime
Thanks to pythcoiner for providing this fix.
2024-09-05 14:56:01 +01:00
Michael Mallan
b630d46770
func test: wait for block heights to match
This is copied from darosior's changes in
https://github.com/wizardsardine/liana/pull/1222#issuecomment-2324894986.
2024-09-05 14:56:00 +01:00
Michael Mallan
ada89c5c56
doc: update with electrum info 2024-09-05 14:55:58 +01:00
Michael Mallan
177dfc46c3
lib: expose BDK's electrum client 2024-09-05 14:55:56 +01:00
jp1ac4
72c6314898
ci: add electrs to func tests 2024-09-05 14:55:55 +01:00
jp1ac4
371e31e3f3
func test: allow to run using electrs backend 2024-09-05 14:55:53 +01:00
jp1ac4
a85d4887e9
func test: allow for different bitcoin backends 2024-09-05 14:55:50 +01:00
jp1ac4
1b04b29491
func test: fix min rbf feerate
Here, the min RBF feerate is 1 more than that of the transaction
to be replaced.

The feerate of the transaction to be replaced may vary slightly
depending on the signature size and is calculated during the test.
As such, the min feerate should be set according to this
calculated value.
2024-09-05 14:55:48 +01:00
jp1ac4
c7ee862020
bitcoin: add electrum backend
This includes changes from darosior's comment in
https://github.com/wizardsardine/liana/pull/1222#issuecomment-2324894986.
2024-09-05 14:55:45 +01:00
jp1ac4
c4c2424f24
bitcoin: expose MempoolEntryFees 2024-09-04 11:49:30 +01:00
jp1ac4
5011ad9290
bitcoin: return spent block height & time separately 2024-09-04 11:49:27 +01:00
jp1ac4
689442c2c9
bitcoin: allow to store UTXO deriv index 2024-09-04 11:49:25 +01:00
Michael Mallan
4c02b0d431
bitcoin: use mut ref for start_rescan 2024-09-04 11:49:24 +01:00
jp1ac4
69259c1236
poller: sync wallet before checking updates
This includes changes from darosior's comment in
https://github.com/wizardsardine/liana/pull/1222#issuecomment-2324894986.
2024-09-04 11:49:21 +01:00
jp1ac4
89e004d4fd
bitcoin: add sync_wallet method to interface
This includes changes from darosior's comment in
https://github.com/wizardsardine/liana/pull/1222#issuecomment-2324894986.
2024-09-04 11:49:18 +01:00
jp1ac4
34b9a49328
config: add general bitcoin backend option 2024-09-04 11:49:17 +01:00
jp1ac4
e267f66be6
descriptors: allow to get underlying public key 2024-09-04 11:49:14 +01:00
Antoine Poinsot
5ee71d9df1
Merge #1235: ci: run spend functional tests
c30ce5909f44449f13fa98565cdbc8e82661b33c ci: run spend functional tests (Michael Mallan)

Pull request description:

  This adds the spend functional tests to the CI pipeline.

ACKs for top commit:
  darosior:
    utACK c30ce5909f44449f13fa98565cdbc8e82661b33c

Tree-SHA512: a2ec8085c418cc8a1e3bb49e8016d9061148e226083c27205297cd58ab1fc7208803d6c156077709cc547a973138e3c9312693c3761ab8a4cdb1f1dab7263a1f
2024-09-04 12:47:00 +02:00
edouardparis
140b31b21b
Merge #1254: Separate login from choose backend step
c75f909dc91968392eef71c42b7fe332435e8298 Separate login from choose backend step (edouardparis)

Pull request description:

  From the issue https://github.com/wizardsardine/liana/issues/1240 It was decided to separate the installer step where user choose the backend and the login.

ACKs for top commit:
  pythcoiner:
    ACK c75f909dc91968392eef71c42b7fe332435e8298
  jp1ac4:
    Tested ACK c75f909dc9.

Tree-SHA512: 8cb098b1a8f2e7f5cb65c2bfc1bc94fed828bacca0093377f0f8a38c13b78983d5612714c7bb464c42c81a532e1f7a64763223dba826b8af558fb65449326885
2024-09-04 11:41:19 +02:00
Antoine Poinsot
1b7bb9485a
Merge #1257: qa: pipe stderr to stdout, not PIPE
26ade7ebdd3b35667e07ba34986c7e25dd857f89 qa: pipe stderr to stdout, not PIPE (Antoine Poinsot)

Pull request description:

  It turns out that setting both to PIPE would result in stderr not being read for some reason. So follow
  https://docs.python.org/3/library/subprocess.html and set stdout to PIPE and stderr to STDOUT.

  Tested with a process (electrs) which logs on stderr.

ACKs for top commit:
  darosior:
    ACK 26ade7ebdd3b35667e07ba34986c7e25dd857f89 -- tested by running the functional tests in parallel for #1222 and could correctly get the logs to debug the issue.

Tree-SHA512: fb4303474411bb818a2743ab675af476d132eb25bb8138d691d6f205febf8c863716bc9c8f400ab30876c3f0b376531ba96932946847e9068e641fa9b5edf7d4
2024-09-04 11:31:18 +02:00
Antoine Poinsot
26ade7ebdd
qa: pipe stderr to stdout, not PIPE
It turns out that setting both to PIPE would result in stderr not being
read for some reason. So follow
https://docs.python.org/3/library/subprocess.html and set stdout to PIPE
and stderr to STDOUT.

Tested with a process (electrs) which logs on stderr.
2024-09-04 11:22:51 +02:00
edouardparis
c75f909dc9 Separate login from choose backend step 2024-09-03 16:46:09 +02:00
edouardparis
e6c592955e
Merge #1246: fix hard coded network signet for remote backend
a331f9fd706c34ba8ab639ca1c7b16a2a80a4fc3 fix hard coded network signet for remote backend (edouardparis)

Pull request description:

  remote backend supports now also mainnet, we have to load downstream the chosen network.

ACKs for top commit:
  edouardparis:
    Self-ACK a331f9fd706c34ba8ab639ca1c7b16a2a80a4fc3

Tree-SHA512: a8ea2d349e647f766ecd3283eb72c3897b0e73799e17f602b563609d6258290da7347dd3f76d18f6f6e0ee7736a30e2c59ff3775fcded19f914846077bbe82ae
2024-08-30 15:58:11 +02:00
edouardparis
a331f9fd70 fix hard coded network signet for remote backend
remote backend supports now also mainnet.
2024-08-30 15:46:43 +02:00
edouardparis
e1e5860a26
Merge #1245: Merge launcher and first installer step
c99df6ccfa88a75ab31ae1edb2b17ef771f50b42 Merge launcher and first installer step (edouardparis)

Pull request description:

  When the gui launches, it checks if there is
  a wallet in the network datadirs with bitcoin mainnet in priority, then other networks as fallbacks. If it is the case, it tries to display information about the wallet by reading the settings.json file.
  If no wallet was found, then the gui displays the choice to either create a wallet or add it.

  ![20240830_10h55m36s_grim](https://github.com/user-attachments/assets/ecd7d085-f72b-450d-8e46-c37b8535ebc1)
  ![20240830_10h55m53s_grim](https://github.com/user-attachments/assets/126b6e1b-07cc-4ba7-9684-0cc846503ee6)

ACKs for top commit:
  jp1ac4:
    Tested ACK c99df6ccfa.

Tree-SHA512: 5a43c543373cbce4aac8f1ead932b7858f8906b005eaca0a07270488b0eb9e8181c58d87400bc512889bb1d258496587da6269889b16e2afd94ef4b03445b76b
2024-08-30 12:21:26 +02:00
edouardparis
c99df6ccfa Merge launcher and first installer step
When the gui launches, it checks if there is
a wallet in the network datadirs with bitcoin mainnet in priority.
If it is the case, it tries to display information about
the wallet by reading the settings.json file.
If no wallet was found, then the gui displays the choice
to either create a wallet or add it.
2024-08-30 11:00:01 +02:00
edouardparis
f2e8e11a12
Merge #1236: Display details of wallet policy in installer
59e7131aeef4478933c6923155ed59535e218c96 Display wallet policy in wallet settings (edouardparis)
52755ed8129041433e3d9695a3c5f93b094c80ed Display details of wallet policy in installer (edouardparis)

Pull request description:

  ![20240827_14h53m19s_grim](https://github.com/user-attachments/assets/e639813c-9fcb-4623-8ed7-a656a7af4154)
  ![20240827_14h56m31s_grim](https://github.com/user-attachments/assets/ac683af1-2c77-4276-8be3-6cd90383cfbc)

  close #620

ACKs for top commit:
  edouardparis:
    Self-ACK 59e7131aeef4478933c6923155ed59535e218c96

Tree-SHA512: 2c272b22cbed496648d8c16c8f5639f6dfa174ca6c5891036d91e9a568e0ada4c5db69576f6d1bc08f44fbae172ba66714e6278ed87fd3cf51e95f00135e63b6
2024-08-29 18:34:38 +02:00
edouardparis
59e7131aee Display wallet policy in wallet settings 2024-08-29 18:24:34 +02:00
edouardparis
52755ed812 Display details of wallet policy in installer 2024-08-29 18:24:34 +02:00
edouardparis
969046c25b
Merge #1237: Change remote backend server url
eef55b41c97146476234bbd445e23d9f8f98cb20 Change remote backend server url (edouardparis)

Pull request description:

  Remote backend has the auth service credentials.
  We rely now uniquely on the following urls:
  * https://api.signet.lianalite.com for signet
  * https://api.lianalite.com for mainnet

ACKs for top commit:
  edouardparis:
    Self-ACK eef55b41c97146476234bbd445e23d9f8f98cb20

Tree-SHA512: fadc9f6c8454dc747ed22302ea33ae985460cc1b7c872010ef4845ced66c0468ba59d0e8e3296426427bea40c2d42ad2935b90fb4ecf6d2dc07d4c1d0c379fab
2024-08-28 17:19:59 +02:00
edouardparis
abeeddc1a8
Merge #1239: Add Liana-Version header to remote backend client
9473d4b9280cd62e89c70a1085904ece448ad6f9 Add Liana-Version header to remote backend client (edouardparis)

Pull request description:

  close #1216

ACKs for top commit:
  edouardparis:
    Self-ACK 9473d4b9280cd62e89c70a1085904ece448ad6f9

Tree-SHA512: 708c4c739c8ea17fd0fb5847490b59205744cbc13e274b9699b22ec247657a47264d0979d2f0dcea7b65d35e09ac67d4c30cd00f1f51e1cdc800098b1bdd1261
2024-08-28 17:17:47 +02:00
edouardparis
9473d4b928 Add Liana-Version header to remote backend client
close #1216
2024-08-28 11:43:06 +02:00
edouardparis
eef55b41c9 Change remote backend server url
Remote backend has the auth service credentials.
We rely now uniquely on the following urls:
* https://api.signet.lianalite.com for signet
* https://api.lianalite.com for mainnet
2024-08-27 17:13:50 +02:00
Michael Mallan
c30ce5909f
ci: run spend functional tests 2024-08-26 09:17:12 +01:00
edouardparis
2253edd70d
Merge #1234: fix wrong datadir in app cache using remote backend
8610afeea635c0ffe91db76fb10ed46e72478d82 fix wrong datadir in app cache using remote backend (edouardparis)

Pull request description:

  Detected after Manuel failed to have in cache the correct the refresh token. It was not correctly stored after 1h in the settings file because of the wrong datadir.

ACKs for top commit:
  edouardparis:
    Self-ACK 8610afeea635c0ffe91db76fb10ed46e72478d82

Tree-SHA512: 7bb6f1281d4642927dbb4a10183e5551a93137ca5e6cea09b906e23a3789684070fd00395aabe4711205db74ffad715ee8ba5bf7e728bf8c2b8327e3b9c5c329
2024-08-23 17:08:41 +02:00
edouardparis
8610afeea6 fix wrong datadir in app cache using remote backend 2024-08-23 16:56:22 +02:00
edouardparis
9707a58ee2
Merge #1099: Lianalite login
80077905a64b2d804c20a49d190f742a244d7816 Revert ctx state for remote backend when user clicks on previous (edouardparis)
cc57f8f7497c0ed763fdd115a1bd7fcbbd6c9043 fix: load hotsigners even for wallet with remote backend (edouardparis)
26d7e317efe19c62ba8baf6ac889c4fd9f2c6aa9 fix: retrieve wallet_id from settings.json (edouardparis)
0fbba9eaa24bc4fbb0966235415eba1459b7d8bd Add backend section to settings to send invitation (edouardparis)
5e4c04fa809aada59ad67f0ef34a3b4d75e00d6b Add invitation process to add wallet flow (edouardparis)
f7dde3d6ecaae5ef7563e21483c7d689cd14e958 Add redirect_to query parameter to otp request url (edouardparis)
92ee94edbc406016db8916d6cf0773de5e2ab250 Add login page to connect to remote backend (edouardparis)

Pull request description:

  This PR introduce the new login to the remote backend.

  The choice of the used backend is defined per wallet.
  The authentication credentials for the remote backend are stored in the settings.json file.

  ## In the installer

  The choice between two different backends is  showned to the user that can choose to authenticate to the remote backend or use the local bitcoind.

  ## Between the launcher and the app a new temporary panel: login.

  This intermediary state after the choice of network datadir from the user, is used to connect to the remote backend if the wallet information in the settings.json file contains the credentials for the remote backend authentication otherwise the launcher redirects directly to the App state with the embedded daemon running.

ACKs for top commit:
  edouardparis:
    Self-ACK 80077905a64b2d804c20a49d190f742a244d7816

Tree-SHA512: c762ff0610cbd5ed6a7b14a3f65395d358bb5299c00e56990b304e0edfeea00465e8ca65d735942e6a53960c220dcbbf65e598cbc738d8c4e7363b18735690b8
2024-08-22 11:28:31 +02:00
edouardparis
80077905a6 Revert ctx state for remote backend when user clicks on previous 2024-08-21 16:39:48 +02:00
edouardparis
cc57f8f749 fix: load hotsigners even for wallet with remote backend 2024-08-21 16:39:48 +02:00
edouardparis
26d7e317ef fix: retrieve wallet_id from settings.json 2024-08-21 16:39:48 +02:00
edouardparis
0fbba9eaa2 Add backend section to settings to send invitation 2024-08-21 16:39:48 +02:00
edouardparis
5e4c04fa80 Add invitation process to add wallet flow 2024-08-21 16:39:48 +02:00
edouardparis
f7dde3d6ec Add redirect_to query parameter to otp request url
the redirect_to is setup in ordert to give to the supabase html template
that user is using the desktop to authenticate. Therefore, It will display
the token instead of the confirmation link button.
2024-08-20 17:40:51 +02:00
edouardparis
92ee94edbc Add login page to connect to remote backend 2024-08-20 17:40:51 +02:00
edouardparis
224aa66231
Merge #1231: change min window height to 650
208c53814845a9b8a9078c1a3380b5912029100c change min window height to 650 (pythcoiner)

Pull request description:

  fixes #1230

ACKs for top commit:
  edouardparis:
    utACK 208c53814845a9b8a9078c1a3380b5912029100c

Tree-SHA512: ef2cccb0a2def6ca35fada5915a5267483ad57c29094852ee9ad95e22762a806565bd22c6b359d037c701103d8ba5a5b22480c3bef4308ef73c149e579444791
2024-08-19 11:31:32 +02:00
pythcoiner
208c538148 change min window height to 650 2024-08-15 15:34:15 +02:00
edouardparis
39c0458f0b
Merge #1229: fix wrong units in remaining time warning
c70a5cb9fe3c3cc60cbfa5383ce669758627684f fix wrong units in remaining time warning (edouardparis)

Pull request description:

  close #1226

ACKs for top commit:
  edouardparis:
    Self-ACK c70a5cb9fe3c3cc60cbfa5383ce669758627684f

Tree-SHA512: 830772cd3d33ba6809d1a9832f411191812ee52b8c9b43cf280450995c7cf5d423aae2b1c7ee4483da2eccbd6ca3ff7b36a0b5ce26ed4081354d4fe90af69505
2024-08-14 15:22:05 +02:00
edouardparis
c70a5cb9fe fix wrong units in remaining time warning
close #1226
2024-08-14 14:26:53 +02:00
Antoine Poinsot
d2d9d11290
Merge #1214: gui: add the version in the window title bar
79f3f5968f5d97e2588bd9f3a08d9d5b8cbbaefc gui: add the version in the window title bar (pythcoiner)

Pull request description:

  This PR add the version (major+minor) into the window titlebar, for both installer & wallet.
  close #1181

  ![image](https://github.com/user-attachments/assets/f4cc883c-dbae-4128-89ea-c9b047e3b1de)

  ![image](https://github.com/user-attachments/assets/013d5c89-9df1-4883-a014-802b255813b8)

ACKs for top commit:
  darosior:
    ACK 79f3f5968f5d97e2588bd9f3a08d9d5b8cbbaefc

Tree-SHA512: 4044f501f1e05a533f3e7b98163845a9610215ff053267db8792e2bf975f63eefb187e1f6c78210f8f06a8eaac7d91037f1635da914040674d88852cce45332f
2024-08-06 11:17:15 +02:00
pythcoiner
79f3f5968f gui: add the version in the window title bar 2024-08-06 01:46:31 +02:00