443 Commits

Author SHA1 Message Date
Antoine Poinsot
ed6ff9c67b
commands: check addresses' network when creating transactions 2022-12-20 18:04:54 +01:00
Antoine Poinsot
f1aec2f4e4
Merge #262: contrib: fix windows archive creation in release script
a0404e5d69e895467a5a51621e728b78140eae8e contrib: fix windows archive creation in release script (Antoine Poinsot)

Pull request description:

  It would create an empty archive since it didn't recurse down the directories..

ACKs for top commit:
  darosior:
    ACK a0404e5d69e895467a5a51621e728b78140eae8e

Tree-SHA512: 60fb2b019244453c0dc003b3bf8df587d64d5663adc9ac0d9fa94f22c1f785189532c175db0076f2862edce78b638f06008f3e424c3f4b325a8f198a6841976a
2022-12-20 15:25:33 +01:00
Antoine Poinsot
c8f94cbc88
Merge #257: doc: add 2 missing dependencies to the quicktry document
fab61d9eebe6ad12df21a614c07f5db6e0263c4b doc: add 2 missing dependencies to the quicktry document (Antoine Poinsot)

Pull request description:

ACKs for top commit:
  darosior:
    ACK fab61d9eebe6ad12df21a614c07f5db6e0263c4b

Tree-SHA512: 2cdb43fa9de5766c2b92fe83408f8a49935371699900c55332a8886cc4831c5f496f62a370577725c223b90020fc28dd01f0f0abf1b4e7628821a95cc4d63371
2022-12-20 15:24:59 +01:00
Antoine Poinsot
12bd92883d
Merge #261: Remove change_index from listspendtxs response
103c1950ba9af114cadde6f92117b31ec584ac73 Remove change_index from listspendtxs response (edouard)

Pull request description:

  Multiple change indexes may be present in a spend
  draft transaction and can be detected instead
  in the response psbt with the bip32_derivation
  outputs fields.

ACKs for top commit:
  darosior:
    utACK 103c1950ba9af114cadde6f92117b31ec584ac73

Tree-SHA512: 82619792c4424537e7320162c149ae946ca1fdc101661cf9bc3d0ba4d16f0327cc3cffd98f11165a9ab9db5d1690013f8ec9bdfe46bd6b1427c332b045d683a8
2022-12-20 15:24:25 +01:00
Antoine Poinsot
a0404e5d69
contrib: fix windows archive creation in release script
It would create an empty archive since it didn't recurse down the
directories..
2022-12-20 14:58:23 +01:00
edouard
4f2e19b2a6
Merge #260: fix spend change detection
a56cab73c5c0193a90732f3ba0c2c5be7b993928 fix spend change detection (edouard)

Pull request description:

  Use the presence of bip32_derivation
  in the spend outputs to detect the
  change outputs.

ACKs for top commit:
  edouardparis:
    Self-ACK a56cab73c5c0193a90732f3ba0c2c5be7b993928

Tree-SHA512: 092f8929ebed4ff4c80d8425a1c83831d165a5d31d0c80bc9aac26edf3dffb0241d547fe4fc5208e0dcb4caa39c09f85f3898af56cd0cd03136e5404b503d02e
2022-12-20 14:08:45 +01:00
edouard
103c1950ba Remove change_index from listspendtxs response
Multiple change indexes may be present in a spend
draft transaction and can be detected instead
in the response psbt with the bip32_derivation
outputs fields.
2022-12-20 14:00:16 +01:00
edouard
a56cab73c5 fix spend change detection
Use the presence of bip32_derivation
in the spend outputs to detect the
change outputs.
2022-12-20 12:40:22 +01:00
edouard
edb1659f89
Merge #258: cargo update -p liana
c77bb45bbfe978153bdfc00e2f46629e14d6277a cargo update -p liana (edouard)

Pull request description:

ACKs for top commit:
  edouardparis:
    Self-ACK c77bb45bbfe978153bdfc00e2f46629e14d6277a

Tree-SHA512: 6196c5f25be62f36e879faeed3f75b3a88472e4870c80d132e0c096e1c89c218085ef0b672e9649a9374ede4142a3b60c96f23dcf77e1e16793a0446c3895625
2022-12-19 15:29:27 +01:00
edouard
c77bb45bbf cargo update -p liana 2022-12-19 14:51:40 +01:00
Antoine Poinsot
fab61d9eeb
doc: add 2 missing dependencies to the quicktry document 2022-12-19 10:16:07 +01:00
Antoine Poinsot
2e7c7826e9
Merge #254: README: mention codesigning and explain how to install Liana's dmg
b3147960759fd6efb39cc6d11644a7ad120260cd README: mention codesigning and explain how to install Liana's dmg anyways (Antoine Poinsot)

Pull request description:

ACKs for top commit:
  darosior:
    ACK b3147960759fd6efb39cc6d11644a7ad120260cd

Tree-SHA512: e976c365bc999adf7a5597acbae867ef588339d0d04895e521ab65373cc659989fcdd4cfa21807a6e662158e6249c84007a7c87911496cdac0be8c1d12c606e5
2022-12-19 09:16:19 +01:00
Antoine Poinsot
b314796075
README: mention codesigning and explain how to install Liana's dmg anyways 2022-12-18 11:45:21 +01:00
Antoine Poinsot
b63416b884
Merge #251: Release script
c5f38ecb4acddbb7f813215518fb45ce4f1da65b contrib: add a script to produce the assets to be released (Antoine Poinsot)
e7f43492f9061b9fa9f391e4dfde28d9d66954db contrib: utilities for releasing a macOS application in a dmg (Antoine Poinsot)

Pull request description:

  This adds a script to produce the binaries and packages we will be releasing. It:
  1. Runs the deterministic build for each platform
  2. Package them nicely according to the platform's requirements
  3. Create a detached sig for each asset with my key, `590B 7292 695A FFA5 B672  CBB2 E13F C145 CD3F 4304`

  Thanks to the Bitcoin Core project for the work on creating a neat `.dmg`, i mostly stole what's here from there.

  Fixes #42.

ACKs for top commit:
  darosior:
    ACK c5f38ecb4acddbb7f813215518fb45ce4f1da65b

Tree-SHA512: 98c92ca51fa0893541ce246cd0ca0e1e6e99f9a56aa70269d4c8e67122116adb282fc49995beee4be6fc3ed53fcb1fb93274b29588084b3ef0c9187cd7e205ad
2022-12-18 11:36:44 +01:00
Antoine Poinsot
c5f38ecb4a
contrib: add a script to produce the assets to be released 2022-12-18 11:34:40 +01:00
Antoine Poinsot
e7f43492f9
contrib: utilities for releasing a macOS application in a dmg
This was mostly inspired by (or outright stolen from) the Bitcoin Core
project. I think most contributions in this area were Michael Ford's
(fanquake), so credits to him.

This is everything that needs to be present in a dmg in order to have a
nice fancy installation drag-and-drop screen. Configuration contains
dummy values to be replaced with specifics at release time.
2022-12-18 11:34:39 +01:00
Antoine Poinsot
aecb063a87
Merge #253: Final doc additions
c9551eca00f555bc486dcf3feac5c0184193c961 README: mention the minimum supported Ledger Bitcoin app version (Antoine Poinsot)
75a26a7f8eb6853c3ab77bb92fd31164d436bf20 README: add a small paragraph on recovery (Antoine Poinsot)
361367a75a873a94352d44514278f8f70b89fa8d doc: document the download of Liana binaries (Antoine Poinsot)

Pull request description:

  Some additions to the documentation that were missing or depending on other things.

ACKs for top commit:
  darosior:
    ACK c9551ec

Tree-SHA512: c78f952396afd489416936f883bf702e3b0703a20b13e0c48493b04d8fe9b51fc67bc396b8cc26cf061b7430a4cf0716de006858c7cfc894b0cd8a4c9abb0993
2022-12-18 11:31:03 +01:00
Antoine Poinsot
c9551eca00
README: mention the minimum supported Ledger Bitcoin app version
Fixes #203
2022-12-18 11:19:04 +01:00
Antoine Poinsot
75a26a7f8e
README: add a small paragraph on recovery 2022-12-18 11:10:57 +01:00
edouard
805c8e192b
Merge #250: fix various bugs with hws and spend signing process
73eb1d38e3612110ad467fd608863519838aa988 fix state: add new hws in list without dropping the old ones (edouard)
d9336c11ea7d3ad4dcb68fbe322d9247cf9ad52e spend detail: add a refresh button for hws (edouard)
5a7eaff17ba895418b368deaa74f8ed1b4ac26e7 fix hws: ledger dongle must load wallet (edouard)

Pull request description:

  Fixes #246
  Fixes #238

ACKs for top commit:
  edouardparis:
    ACK 73eb1d38e3612110ad467fd608863519838aa988

Tree-SHA512: 969824ba2ac28a5726b8b0e87cc9a0e216ae54e2ec1fde6c5cb73d9a9326071d3b1ede9dcde1e06eb1946a38627b4ed3be2efa23955b88b11db66f36f94de14a
2022-12-18 10:59:58 +01:00
Antoine Poinsot
361367a75a
doc: document the download of Liana binaries 2022-12-18 10:54:20 +01:00
Antoine Poinsot
f37230a45e
Merge #244: Restructure the reproducible builds folders
ffbe2f71d36ac1125e749efcaf7882a6f2c46c33 guix update Miniscript branch in cargo config (Antoine Poinsot)
b7e349459d7cadf227d2bd13fa970ed230103e41 guix: create the cargo config in the repo directory, not home (Antoine Poinsot)
b0ade5993745951b113f2c8aff26cf0b4b53aa16 README: mention reproducible builds (Antoine Poinsot)
01481ba7d7d3fd1c9b42ddafb22e5fdcb9f08976 contrib: move the docker and guix folders under a single 'reproducible' (Antoine Poinsot)

Pull request description:

  Better to have those under a single, more meaningful, folder.

ACKs for top commit:
  darosior:
    self-ACK ffbe2f71d36ac1125e749efcaf7882a6f2c46c33

Tree-SHA512: 2f1763a952f51046ec9e8d9ea545680452aa5716fd30973bc3f4096d40e21f8b5f8479f492a3b9d02f1fff21b57835cbf0cf3044e8211501cf5077b553b454fe
2022-12-18 10:04:03 +01:00
Antoine Poinsot
ffbe2f71d3
guix update Miniscript branch in cargo config 2022-12-18 09:46:06 +01:00
Antoine Poinsot
b7e349459d
guix: create the cargo config in the repo directory, not home 2022-12-18 09:46:05 +01:00
Antoine Poinsot
b0ade59937
README: mention reproducible builds 2022-12-18 09:46:05 +01:00
Antoine Poinsot
01481ba7d7
contrib: move the docker and guix folders under a single 'reproducible' 2022-12-18 09:46:04 +01:00
edouard
73eb1d38e3 fix state: add new hws in list without dropping the old ones
It should be a solution for #238
2022-12-16 19:15:46 +01:00
edouard
d9336c11ea spend detail: add a refresh button for hws
close #246
2022-12-16 19:11:18 +01:00
Antoine Poinsot
b5a0bb00d3
Merge #239: MacOS reproducible build using Docker
88c969a6a107d347ee97fbb225ae1568e98acb37 contrib: document Docker reproducible builds (Antoine Poinsot)
9a800113a713b1687960c14b77b1ada1df17bdff contrib: reproducible builds for macOS using Docker (Antoine Poinsot)

Pull request description:

  This finishes the work on reproducible build with the last missing cross compilation: macOS. I still need to add a README to this folder. I'll do it in this PR.

ACKs for top commit:
  darosior:
    re-ACK 88c969a6a107d347ee97fbb225ae1568e98acb37

Tree-SHA512: 5442d20fc33de16370b7776cec55e3d2d0ef5d66b595160a15099959f2f3b59705aeb945fef7a0e59a5909a8569a243ed85a63f09679fcc642c23010d67090a4
2022-12-16 19:05:10 +01:00
Antoine Poinsot
88c969a6a1
contrib: document Docker reproducible builds 2022-12-16 19:04:27 +01:00
edouard
5a7eaff17b fix hws: ledger dongle must load wallet 2022-12-16 18:59:45 +01:00
edouard
0cb2a30186
Merge #249: fix inconsistencies between spend and coins panel
aa32444318ebe44d4cf38c15f08ccec061b9cb0c fix inconsistencies between spend and coins panel (edouard)

Pull request description:

  Add remaining timelock and unconfirmed label.

  close #232

ACKs for top commit:
  edouardparis:
    Self-ACK aa32444318ebe44d4cf38c15f08ccec061b9cb0c

Tree-SHA512: 61dcceb55d175c98927f89ffd8a357dadb50b5c987b50b5981da4be7a94768de4df9a27c71ff15f81862921a2f62d40721f377bcd128889f234c935f01646ee5
2022-12-16 17:44:16 +01:00
edouard
aa32444318 fix inconsistencies between spend and coins panel
Add remaining timelock and unconfirmed label.

close #232
2022-12-16 17:25:41 +01:00
edouard
c4481ca292
Merge #245: fix client: list_pending_txs must include incoming tx
fffca977a91da76d2396f4b9d5cc84a87c9dfdef fix client: list_pending_txs must include incoming tx (edouard)

Pull request description:

ACKs for top commit:
  edouardparis:
    Self-ACK fffca977a91da76d2396f4b9d5cc84a87c9dfdef

Tree-SHA512: fe8dfab568694c7a5878166ac7db5ae3736d04dba4ce5c672a22e5207d0b76701accbcf78895f2561302147af627c83b02fc4e108895b4122a59a6a15fb807d7
2022-12-16 16:37:46 +01:00
edouard
fffca977a9 fix client: list_pending_txs must include incoming tx 2022-12-16 15:49:17 +01:00
Antoine Poinsot
9a800113a7
contrib: reproducible builds for macOS using Docker
The gist is: we use https://github.com/tpoechtrager/osxcross.

This contains a few cleanups of the "Docker reproducible builds" folder
as a whole.
2022-12-16 11:53:03 +01:00
Antoine Poinsot
cd782f2a76
Merge #241: Clippy fixes and version pin
f996e2565797b413870d75fa764ebd207bb264c4 ci: pin clippy to 1.65.0 for the GUI (Antoine Poinsot)
d529cd8b6c7245852deacbfa9d14b349b1ad04e3 ci: pin clippy at 1.66.0 (Antoine Poinsot)
ab9fff4395c9d368d4d8c795af4d4ada295ac36b Remove clippy.toml (Antoine Poinsot)
d3b89add9aa8d7329bbb2afc7b2288fc1ea95189 daemon: apply clippy 1.66.0 fixes (Antoine Poinsot)

Pull request description:

  The CI broke again because clippy is configured to target `stable` and introduces breaking changes with each version. Apply the fixes for the latest stable, then pin clippy to this version.

  For the GUI i wasn't sure so i just pinned clippy to the latest stable.

ACKs for top commit:
  darosior:
    self-ACK f996e2565797b413870d75fa764ebd207bb264c4 -- trivial

Tree-SHA512: 5f41af6b568e20556a4f781f3cff110790eee7f13c62842882a4211ddac9513fd84293a751b6b0fa9206cccecf06c8b04d365dd070cf26de88f4af78be1b10fc
2022-12-16 11:18:17 +01:00
Antoine Poinsot
f996e25657
ci: pin clippy to 1.65.0 for the GUI 2022-12-16 11:08:39 +01:00
Antoine Poinsot
d529cd8b6c
ci: pin clippy at 1.66.0
To avoid future breakage.
2022-12-16 11:02:42 +01:00
Antoine Poinsot
ab9fff4395
Remove clippy.toml
I had put it (following rust-bitcoin) because of the MSRV, but it looks
like clippy doesn't care.
2022-12-16 11:01:34 +01:00
Antoine Poinsot
d3b89add9a
daemon: apply clippy 1.66.0 fixes 2022-12-16 11:01:23 +01:00
Antoine Poinsot
3ac9f39aa1
Merge #224: Windows watchonly wallet path workaround
48e4909e7ad83c21f788802953327f8041a69b7d daemon: store the watchonly wallet file in bitcoind's datadir on Windows (Antoine Poinsot)

Pull request description:

  Turns out that providing an absolute path to bitcoind when loading a wallet on Windows results in surprising behaviour.

ACKs for top commit:
  edouardparis:
    ACK 48e4909e7ad83c21f788802953327f8041a69b7d

Tree-SHA512: b432460d529cf5b879361452af1e7947ec877c293f8a8a2e1740975a2957c0cdb288d1f9a1fa07e56193c7c65edf1f985d9e24dd3412f2bfc10922df239de766
2022-12-15 19:16:37 +01:00
Antoine Poinsot
dd6c5baf2d
Merge #212: Windows reproducible build
89d2e67625b1308d621af0fe15081588459e22b8 Windows reproducible builds using Docker (Antoine Poinsot)
43ece74cf747e278a1ce0b96203a4bc958d1cb12 gui: target 'windows' subsystem for Windows targets (Antoine Poinsot)

Pull request description:

  Using Docker for now. I'll add documentation once i've figured out macOS.

ACKs for top commit:
  darosior:
    Cool. ACK 89d2e67625b1308d621af0fe15081588459e22b8

Tree-SHA512: 74cf8b5184fbf1fe64bccdf5e7a0f856bf5890e61559fd759485af6fa9bd4ef3430d4c010748a8cf97ca0d9086f49e93d1bb90899610fd98638bdd8c01f33819
2022-12-15 19:15:59 +01:00
edouard
5117b8dc44
Merge #228: fix recovery state coins filtering
192072ea257ae50e6c90bda00677b5f07ca9ada9 fix recovery state coins filtering (edouard)

Pull request description:

  Recoverable coins are coins that recovery
  path is available *next* block

ACKs for top commit:
  darosior:
    Not familiar with this code, but it appears it now check whether the timelock will be mature in one block or less. If that is the case then it is consistent with the behaviour of the daemon. utACK 192072ea257ae50e6c90bda00677b5f07ca9ada9.
  edouardparis:
    ACK 192072ea257ae50e6c90bda00677b5f07ca9ada9

Tree-SHA512: 0bf5f39fcf393a16667f498d851a3cd7dd6b0831696db05c27363b6f9d5006225afc919d6a6c4d3992cd3d3ce702bc5a7e0a7e57d9f21234649237ee172f1f2d
2022-12-15 15:18:06 +01:00
edouard
192072ea25 fix recovery state coins filtering
Recoverable coins are coins that recovery
path is available *next* block
2022-12-15 12:50:39 +01:00
Antoine Poinsot
440a4383c4
Merge #222: Minisafed -> lianad
733b1240bdffa6bb740c3bc6483a4849b62bf6ef Update CONTRIBUTING.md (Kevin Loaec)

Pull request description:

ACKs for top commit:
  darosior:
    Good catch. Thanks. ACK 733b1240bdffa6bb740c3bc6483a4849b62bf6ef.

Tree-SHA512: 102d2b925525c3c3b7b0272efe500fb230926540a5efd22425bf0a4d7abe9b1ccdd73dd82fe97dc39d47ed41625138902ebf4be27e2cce4e32128b9f648c0c2a
2022-12-14 18:36:19 +01:00
Antoine Poinsot
3be64f4cd5
Merge #227: Decrease threshold of the bitcoind sync progress
030bfadaf7ef5e88500f6f64ea814d3656b07fba bitcoind: decrease the sync progress roundup threshold (Antoine Poinsot)
4560bc9ed2e41e81797cadfdecb5a97a6d351850 bitcoind: move roundup_progress() to utils and unit test it (Antoine Poinsot)

Pull request description:

  Part of #217.

ACKs for top commit:
  darosior:
    ACK 030bfadaf7ef5e88500f6f64ea814d3656b07fba

Tree-SHA512: 253eaaa7a2dfad34858bcb54e9d001ac4f0f5037646075f80db1bf2259f8b2bcda002e8bf19f5d06aa0959d62b1a770df9fc2eba8454b3545734ee27b36234e3
2022-12-14 18:35:45 +01:00
Antoine Poinsot
48e4909e7a
daemon: store the watchonly wallet file in bitcoind's datadir on Windows 2022-12-14 18:32:37 +01:00
Antoine Poinsot
87fac3bcea
Merge #221: just put the whole gpg key
52341db41d719f7cbb224d9164593f5f2992eae7 just put the whole gpg key (Kevin Loaec)

Pull request description:

  I'm quite sure it does the check for you. So i also removed the extra comment. If i'm doing something wrong plz educate me :D

ACKs for top commit:
  darosior:
    I wouldn't be surprised if gpg was doing something surprising like transforming the key into a fingerprint before pulling from the keyserver. On the other hand it's the only bit of additional information re: checking GPG signatures in this document so being consistent is probably better. ACK 52341db41d719f7cbb224d9164593f5f2992eae7

Tree-SHA512: 95cadf5a6d93b63dbf7072cc61129feb2d5a229442ba6a4eaa6f741228d5404b929ba262b3550759edef230baa3aa09e469017362e37103de0a6eed5e4331a90
2022-12-14 18:31:32 +01:00
Antoine Poinsot
53d64963e8
Merge #220: Made it more user friendly. Also, ARCH <3
3388ab9140857b2a715ab95bb69b30754dd60e0b Update doc/TRY.md (Kevin Loaec)
e327104a0f45cf1b994cb85b9f806e54b160ab17 Update doc/TRY.md (Kevin Loaec)
d24bf432378b738df23d878f748bf0f9ed6ed6f4 Update TRY.md (Kevin Loaec)
7ae4992d8858b6083ce2b92665b92ace9b40b6e4 Update doc/TRY.md (Kevin Loaec)
f6e143769590c4b3b32060e2c966080d10fcc325 Made it more user friendly. Also, ARCH <3 (Kevin Loaec)

Pull request description:

  Replaced the confusing Recovery section with a detailed Ian Coleman keygen.

ACKs for top commit:
  darosior:
    ACK 3388ab9140857b2a715ab95bb69b30754dd60e0b

Tree-SHA512: d3a3b628d6f3ffe3b7485188a9cd278f98ad66ea32e9798388146995ff02ded7e50315a8e61d74c691e8d50f87391adefd39aa87a21c7135797a17fe666f7c1a
2022-12-14 18:31:20 +01:00