rpc: use importdescriptors with Core >= 0.21

Only use the old `importmulti` with Core versions that don't support
descriptor-based (sqlite) wallets.

Add an extra feature to test against Core 0.20 called `test-rpc-legacy`
This commit is contained in:
Alekos Filini
2022-06-07 13:14:52 +02:00
parent 32699234b6
commit e1a1372bae
6 changed files with 113 additions and 35 deletions

View File

@@ -166,7 +166,7 @@ Integration testing require testing features, for example:
cargo test --features test-electrum
```
The other options are `test-esplora` or `test-rpc`.
The other options are `test-esplora`, `test-rpc` or `test-rpc-legacy` which runs against an older version of Bitcoin Core.
Note that `electrs` and `bitcoind` binaries are automatically downloaded (on mac and linux), to specify you already have installed binaries you must use `--no-default-features` and provide `BITCOIND_EXE` and `ELECTRS_EXE` as environment variables.
## License