Skip to content

Commit

Permalink
- remove timeout from ledger sign as that will take time
Browse files Browse the repository at this point in the history
- change ledgerStringToSign logic temporarily while we test the new app
  • Loading branch information
simonmcl committed Aug 21, 2024
1 parent 6bf4f57 commit 9fdde00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions Sources/KukaiCoreSwift/Models/LedgerWallet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,8 @@ public class LedgerWallet: Wallet {
.timeout(.seconds(10), scheduler: RunLoop.main, customError: {
return KukaiError.knownErrorMessage("Timed out waiting for device to connect. Check device/bluetooth is turned on and try again")
})
.flatMap { _ -> Publishers.Timeout<AnyPublisher<String, KukaiError>, RunLoop> in
.flatMap { _ -> AnyPublisher<String, KukaiError> in
return LedgerService.shared.sign(hex: hex, parse: isWatermarkedOperation)
.timeout(.seconds(10), scheduler: RunLoop.main, customError: {
return KukaiError.knownErrorMessage("Timed out waiting for device to connect. Check device/bluetooth is turned on and try again")
})
}
.sink(onError: { error in
completion(Result.failure(error))
Expand Down
2 changes: 1 addition & 1 deletion Sources/KukaiCoreSwift/Services/OperationService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public class OperationService {
ledgerCanParse = true
}

return (ledgerCanParse ? watermarkedOp : blakeHashString)
return watermarkedOp //(ledgerCanParse ? watermarkedOp : blakeHashString)
}

/**
Expand Down

0 comments on commit 9fdde00

Please sign in to comment.