Skip to content

Commit

Permalink
Try to reconnect to the trezor device on IO error
Browse files Browse the repository at this point in the history
  • Loading branch information
OBorce committed Mar 6, 2025
1 parent 5e6bb47 commit 001afc6
Show file tree
Hide file tree
Showing 5 changed files with 219 additions and 86 deletions.
20 changes: 18 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions wallet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ utils-networking = { path = "../utils/networking" }
utxo = { path = "../utxo" }
wallet-storage = { path = "./storage" }
wallet-types = { path = "./types" }
trezor-client = { git = "https://github.com/mintlayer/mintlayer-trezor-firmware", branch = "feature/mintlayer-pk", features = ["bitcoin", "mintlayer"], optional = true }
trezor-client = { git = "https://github.com/mintlayer/mintlayer-trezor-firmware", branch = "mintlayer-master", features = ["bitcoin", "mintlayer"], optional = true }
rusb = { version = "0.9", package = "rusb", optional = true }

bip39 = { workspace = true, default-features = false, features = ["std", "zeroize"] }
hex.workspace = true
Expand All @@ -44,6 +45,6 @@ rstest.workspace = true
tempfile.workspace = true

[features]
trezor = ["dep:trezor-client", "wallet-types/trezor"]
trezor = ["dep:trezor-client", "dep:rusb", "wallet-types/trezor"]
enable-trezor-device-tests = []
default = ["trezor"]
Loading

0 comments on commit 001afc6

Please sign in to comment.