do not preload before chaindb is open.
This commit is contained in:
parent
ad7ef10343
commit
f45f3b1380
@ -172,11 +172,11 @@ Chain.prototype._init = function _init() {
|
|||||||
|
|
||||||
utils.debug('Chain is loading.');
|
utils.debug('Chain is loading.');
|
||||||
|
|
||||||
self._preload(function(err) {
|
self.db.open(function(err) {
|
||||||
if (err)
|
if (err)
|
||||||
return self.emit('error', err);
|
return self.emit('error', err);
|
||||||
|
|
||||||
self.db.open(function(err) {
|
self._preload(function(err) {
|
||||||
if (err)
|
if (err)
|
||||||
return self.emit('error', err);
|
return self.emit('error', err);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user