Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
470b7938
Unverified
Commit
470b7938
authored
Jan 27, 2017
by
Péter Szilágyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accounts/usbwallet: support Ledger app version <1.0.2
parent
1ecf99bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
ledger.go
accounts/usbwallet/ledger.go
+5
-1
No files found.
accounts/usbwallet/ledger.go
View file @
470b7938
...
...
@@ -330,9 +330,13 @@ func (hub *LedgerHub) rescan() {
id
:=
uint16
(
device
.
Bus
)
<<
8
+
uint16
(
device
.
Address
)
hub
.
wallets
[
id
]
=
wallet
if
wallet
.
resolve
Version
()
!=
nil
||
wallet
.
resolve
Address
()
!=
nil
{
if
wallet
.
resolveAddress
()
!=
nil
{
glog
.
V
(
logger
.
Info
)
.
Infof
(
"ledger wallet [%s] connected, Ethereum app not started"
,
wallet
.
url
)
}
else
{
// Try to resolve the Ethereum app's version, will fail prior to v1.0.2
if
wallet
.
resolveVersion
()
!=
nil
{
wallet
.
version
=
[
3
]
byte
{
1
,
0
,
0
}
// Assume worst case, can't verify if v1.0.0 or v1.0.1
}
hub
.
accounts
=
append
(
hub
.
accounts
,
accounts
.
Account
{
Address
:
wallet
.
address
,
URL
:
wallet
.
url
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment