HDNode: avoid walking bip32 object
This commit is contained in:
parent
110cb86b5e
commit
a8459818e3
1 changed files with 3 additions and 3 deletions
|
@ -15,11 +15,11 @@ function findBIP32ParamsByVersion(version) {
|
||||||
for (var name in networks) {
|
for (var name in networks) {
|
||||||
var network = networks[name]
|
var network = networks[name]
|
||||||
|
|
||||||
for (var type in network.bip32) {
|
if (version === network.bip32.private ||
|
||||||
if (version != network.bip32[type]) continue
|
version === network.bip32.public) {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
isPrivate: (type === 'private'),
|
isPrivate: (version === network.bip32.private),
|
||||||
network: network
|
network: network
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue