walletdb: minor.

This commit is contained in:
Christopher Jeffrey 2017-01-16 23:20:13 -08:00
parent 4254b4359e
commit e738a80988
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -2178,10 +2178,10 @@ function WalletOptions(options) {
*/
WalletOptions.prototype.fromOptions = function fromOptions(options) {
if (options.network != null)
if (options.network != null) {
this.network = Network.get(options.network);
this.keepBlocks = this.network.block.keepBlocks;
this.keepBlocks = this.network.block.keepBlocks;
}
if (options.logger != null) {
assert(typeof options.logger === 'object');