208 Commits

Author SHA1 Message Date
edouardparis
b6971fdd64 Prepare version 12.0 2025-07-22 10:38:42 +02:00
Michael Mallan
cb60089ace
fix(poller): only update last used index for affected keychain 2025-07-09 10:48:18 +01:00
edouardparis
fef70879b9 refac: remove patch field from Version
The Version struct is used across the software
to display the release version. A release version
does not include patch number as we increment
only the major and the minor during a new release.

For very small patch that does not change the
API and does not require a new release, then the crates
Cargo.toml version patch number will be incremented.
2025-06-16 18:48:31 +02:00
edouardparis
a9d417bc39 Prepare v11.0-dev 2025-05-26 11:11:46 +02:00
edouardparis
619ea6923f
Merge #1692: feat: add listrevealedaddresses command
3d6a22ea05df70d6f0c11f2f00c85dc16975ad28 feat: add rpc command to list revealed addresses (Michael Mallan)
4945dba7c066d1434fa38a09a955339b7182e693 feat: add command to list revealed addresses (Michael Mallan)
75f37708b3b1f6a89e0f5488c95618a07356f166 test: implement methods for getting/setting labels (Michael Mallan)
16b96b5456b46cd3703d4829b24746c8a489b3ed style: apply black formatting (Michael Mallan)

Pull request description:

  This implements #1678.

  The command parameters differ slightly from those described in the issue:
  - instead of a `keychain` enum parameter, I used  `is_change` to control whether receive or change addresses are returned.
  - I used an optional `continue_from` parameter to control pagination. The value to pass in the next request is provided by the previous response. If no value is provided in the response, there are no more addresses to list. If no value is set in the request, the addresses will be returned starting from the last revealed address.

  Setting the positional argument for `continue_after` as `null` will be treated the same as omitting it (for other RPC commands, a `null` value results in a parsing error).

ACKs for top commit:
  pythcoiner:
    utACK 3d6a22e

Tree-SHA512: 0efa93bc40d0751cbe64570f9789b3a701e0bc5aab982da9ed9f21117a2eea073a81388370d56a9021c0ff87b6cbaec7338339427e6c879e8e97eababb107f57
2025-05-12 09:36:21 +02:00
Michael Mallan
3d6a22ea05
feat: add rpc command to list revealed addresses 2025-05-07 08:48:34 +01:00
Michael Mallan
16b96b5456
style: apply black formatting 2025-05-02 17:46:49 +01:00
thomas
c20318af64 Upgrade pytest 2025-04-29 17:11:35 +02:00
edouardparis
61bc0ffbc8 tests: use data_directory 2025-04-23 18:53:56 +02:00
Michael Mallan
d4151d88d6
rpc: allow to choose outpoints in createrecovery
To maintain backwards compatibility, the `outpoints` parameter
is the final positional argument and can be omitted entirely.
2025-04-08 14:50:10 +01:00
Michael Mallan
e987458657
lianad: ensure consistent derivation index management
The database should store the last used/revealed derivation index.

Docstrings have been updated accordingly.

Getting a new address requires that the database value first be
incremented.

When listing addresses without specifying a count, all
used/revealed addresses should be returned.
2025-03-24 18:39:04 +00:00
Michael Mallan
81a5b159e5
chore(qa): run black formatter 2025-03-24 16:17:45 +00:00
edouardparis
88cebffb03 Prepare v10.0 2025-03-21 16:12:32 +01:00
pythcoiner
2291138fb6
lianad: docs & tests for getlabelsbip329 command 2025-03-19 07:43:41 +01:00
pythcoiner
9417549ddb
lianad: docs & tests for updatederivationindexes command 2025-03-19 07:43:41 +01:00
pythcoiner
107e81071c
lianad; update docs & tests for getinfo command 2025-03-19 07:26:04 +01:00
Michael Mallan
1859a2d5f0
bump bdk_coin_select to 0.4
Weights are now stored as `u64` instead of `u32`.

The tests have been updated to reflect that coin selection now
calculates feerates using a transaction's size in rounded-up
vbytes.
2025-01-30 15:45:15 +00:00
Michael Mallan
4d05c1f0ff
commands: allow rbf for spending txs without saved psbt 2025-01-29 15:54:39 +00:00
Michael Mallan
4ce5ca4d80
qa: check psbt must be saved in db to use rbf 2025-01-29 15:45:20 +00:00
damuzhi0810
f12c65cdd2 chore: fix some comments
Signed-off-by: damuzhi0810 <rust@before.tech>
2025-01-23 22:05:18 +08:00
edouardparis
440efa7b61
Merge #1271: tests: add a note to README.md about running tests in parallel
ef5291d7e8ebfd4ab14a91197ef5d0bf275586f9 tests: add a note to README.md about running tests in parallel (pythcoiner)

Pull request description:

ACKs for top commit:
  edouardparis:
    ACK ef5291d7e8ebfd4ab14a91197ef5d0bf275586f9

Tree-SHA512: 23430e65e05c4b54a7a9eae2110a4e17c14952bcd727284805201deedd5eeee36b2a9ebc1a612624e8a2cff3e6943d31515008c65a0b5d4fbb3a34734a3b57dd
2025-01-23 12:34:33 +01:00
edouardparis
d0fefc37f4 Prepare v9 release 2025-01-07 11:22:24 +01:00
edouardparis
126fdb7bbe
Merge #1504: chore: fix some typos
96fd7b5ee35b715bde1b8a91b9f1defd5a3b888f chore: fix some typos (fudancoder)

Pull request description:

ACKs for top commit:
  jp1ac4:
    ACK 96fd7b5ee3.

Tree-SHA512: a42edeb6ca5610a0168efbea6b5678ac88a351e6b43d9137c2bee5134857b8419e5dedb23393577196b777547e8ece018e68c8796f61e8de03bc818e648766e2
2025-01-06 17:38:47 +01:00
Michael Mallan
6b914fd249
bitcoind: parse descriptor before comparing strings
Parsing the descriptor first will ensure a match is found
regardless of whether bitcoind uses `h` or `'`.
2024-12-30 17:12:28 +00:00
fudancoder
96fd7b5ee3 chore: fix some typos
Signed-off-by: fudancoder <fudancoder@icloud.com.>
2024-12-19 21:04:04 +08:00
Michael Mallan
091d7728ee
commands: use unconfirmed from self for coin selection
We previously used unconfirmed change as a best-guess way of
identifying those coins from self, but now we have the
`is_from_self` field we can use it directly and be sure we only
select coins that are fully under our control.
2024-12-16 10:24:19 +00:00
Michael Mallan
1c0338610f
commands: add is_from_self to listcoins response 2024-12-02 10:08:18 +00:00
edouardparis
c14c55beee remove daemonize from config 2024-11-18 18:36:23 +01:00
pythcoiner
5c088b2eb6 tests: notifyAll() is deprecated, replace w/ notify_all() 2024-11-18 11:35:12 +01:00
Michael Mallan
6e74a96e12
Revert "spend: add 10 sats to fee for 1 sat/vb txs"
This reverts commit 74a53baa39c409d8a39a27affc5ebac34128cb24.

I also removed the extra sats being added in the functional test.
2024-11-08 15:27:25 +00:00
Michael Mallan
cf88aca3ae
descriptors: fix satisfaction size for Taproot
This includes the sizes of the script and control block elements.
2024-11-08 15:27:23 +00:00
Michael Mallan
e9c6995706
qa: add threshold paramater for multisig descs 2024-11-08 15:26:36 +00:00
edouardparis
95e97bc7dc Bump liana version v8 2024-11-05 11:11:20 +01:00
Michael Mallan
0f9f1f352c
commands: return last poll timestamp from getinfo 2024-10-24 11:24:31 +01:00
Michael Mallan
c6add0aeb1
qa: add method to get lianad poll interval 2024-10-24 11:24:27 +01:00
edouardparis
aa1ca64816 Bump liana v7.0 2024-09-12 09:31:21 +02:00
Michael Mallan
74a53baa39
spend: add 10 sats to fee for 1 sat/vb txs
This is a quick change to prevent the fee being below the
min relay fee.
2024-09-11 15:30:32 +01:00
Antoine Poinsot
3d7b3e4473
qa: correct reorg_shit function to use given height
It was using the passed height for all other calculation, except for the
invalidation itself where it was using the wider-scope-initial-tip! This
is probably a mistake due to moving it to its own, inner, function.
2024-09-11 10:12:34 +02:00
Michael Mallan
537ebb2fb3
func test: check electrs has started 2024-09-10 14:19:48 +01:00
pythcoiner
ef5291d7e8 tests: add a note to README.md about running tests in parallel 2024-09-06 05:01:39 +02:00
Antoine Poinsot
8b76a6b977
Merge #1269: Couple fixes to the functional tests
7cce13656266d90431133ccb4de5ccf086f4aa82 qa: test proc stderr isn't None before closing it (Antoine Poinsot)
ba553e9ddb104af454d9eff9969c0e37a1f3061a qa: adapt bitcoind config to support 28.0 (Antoine Poinsot)

Pull request description:

ACKs for top commit:
  darosior:
    ACK 7cce13656266d90431133ccb4de5ccf086f4aa82

Tree-SHA512: ff0a9addd6063cd31b8e7f76cbf2b7ed1f5e85c2d7192ed5e73bba1c81a3bb4e8740ff7c5242d054115e28e484c87f85cafcbbc4dcc4ecf24ff415a028e1b0b5
2024-09-05 17:10:30 +02:00
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
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
Antoine Poinsot
7cce136562
qa: test proc stderr isn't None before closing it 2024-09-05 14:32:03 +02:00
Antoine Poinsot
ba553e9ddb
qa: adapt bitcoind config to support 28.0
Got broken by bca346a970
2024-09-05 14:31:01 +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
Antoine Poinsot
b2aeafab56
Merge #1186: Add minimum feerate to TooLowFeerate error message
8be0d9856b29eb30593ae7614fe74430ffd206d4 commands: add minimum feerate to TooLowFeerate error message (Aaron Carlucci)

Pull request description:

  This PR adds the minimum feerate value into the `TooLowFeerate` error message for additional context. Addresses the second bullet point in #853.

ACKs for top commit:
  jp1ac4:
    ACK 8be0d9856b29eb30593ae7614fe74430ffd206d4. Thanks!

Tree-SHA512: 3a0e9c69ddb40433faf1e58c16dfee0212641b34478eddeda99388ebf82e2fb466633ab8f79c9bb0bb784f4a46807aa0a5abd65b9d92506144b84addb01dfdd8
2024-07-29 13:53:27 +02:00