Skip to content

Commit 21e9aa1

Browse files
committed
feat(hwi): add libudev-sys dep to workflows
- async-hwi requires libudev-sys for linux systems - remove skip_blocks param as it is no longer needed for cbf
1 parent a3d5896 commit 21e9aa1

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

.github/workflows/code_coverage.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ jobs:
1616
uses: actions/checkout@v4
1717
with:
1818
persist-credentials: false
19-
- name: Install lcov tools
20-
run: sudo apt-get install lcov -y
19+
- name: Install system dependencies
20+
run: |
21+
sudo apt-get update
22+
sudo apt-get install -y libudev-dev libusb-1.0-0-dev lcov
2123
- name: Install Rust toolchain
2224
uses: actions-rs/toolchain@v1
2325
with:

.github/workflows/cont_integration.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ jobs:
1818
steps:
1919
- name: Checkout
2020
uses: actions/checkout@v4
21+
# hwi (async-hwi) depends on libudev-sys
22+
- name: Install system dependencies
23+
run: |
24+
sudo apt-get update
25+
sudo apt-get install -y libudev-dev libusb-1.0-0-dev
2126
- name: Generate cache key
2227
run: echo "${{ matrix.rust }} ${{ matrix.features }}" | tee .cache_key
2328
- name: Cache

src/handlers.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,10 +1146,7 @@ pub async fn handle_hwi_subcommand(
11461146
#[cfg(feature = "rpc")]
11471147
cookie: None,
11481148
#[cfg(feature = "cbf")]
1149-
compactfilter_opts: CompactFilterOpts {
1150-
conn_count: 2,
1151-
skip_blocks: None,
1152-
},
1149+
compactfilter_opts: CompactFilterOpts { conn_count: 2 },
11531150
};
11541151

11551152
#[cfg(feature = "sqlite")]

src/utils.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ use bdk_wallet::Wallet;
6161
use bdk_wallet::{PersistedWallet, WalletPersister};
6262

6363
use bdk_wallet::bip39::{Language, Mnemonic};
64-
use bdk_wallet::bitcoin::{
65-
Address, Network, OutPoint, ScriptBuf, bip32::Xpriv, secp256k1::Secp256k1,
66-
};
64+
use bdk_wallet::bitcoin::{bip32::Xpriv, secp256k1::Secp256k1};
6765
use bdk_wallet::descriptor::Segwitv0;
6866
use bdk_wallet::keys::{GeneratableKey, GeneratedKey, bip39::WordCount};
6967
use serde_json::{Value, json};

0 commit comments

Comments
 (0)