http: fix hd key handling.
This commit is contained in:
parent
323ea3eda5
commit
41a94dacd2
@ -307,7 +307,7 @@ HTTPServer.prototype._init = function _init() {
|
||||
|
||||
if (params.accountKey) {
|
||||
enforce(typeof params.accountKey === 'string', 'accountKey must be a string.');
|
||||
options.accountKey = HD.fromExtended(params.accountKey);
|
||||
options.accountKey = HD.fromBase58(params.accountKey);
|
||||
}
|
||||
|
||||
if (params.timeout != null) {
|
||||
@ -402,8 +402,8 @@ HTTPServer.prototype._init = function _init() {
|
||||
}
|
||||
|
||||
if (params.master) {
|
||||
enforce(typeof params.key === 'string', 'Key must be a string.');
|
||||
options.master = HD.fromExtended(params.master);
|
||||
enforce(typeof params.master === 'string', 'Key must be a string.');
|
||||
options.master = HD.fromBase58(params.master);
|
||||
}
|
||||
|
||||
if (params.mnemonic) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user