fix leveldown problem
This commit is contained in:
parent
085d8f2e39
commit
d6efd8a50e
@ -232,7 +232,10 @@ BlockService.prototype._getLatestHash = function() {
|
|||||||
var self = this;
|
var self = this;
|
||||||
return Promise.try(function() {
|
return Promise.try(function() {
|
||||||
return self.database.getAsync(Index.tip);
|
return self.database.getAsync(Index.tip);
|
||||||
}).catch(LevelUp.errors.NotFoundError, function() {
|
}).catch(function(error) {
|
||||||
|
if (error.toString() !== 'NotFoundError: Key not found in database [tip]') {
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@ -47,7 +47,7 @@
|
|||||||
"express": "4.11.1",
|
"express": "4.11.1",
|
||||||
"glob": "*",
|
"glob": "*",
|
||||||
"js-yaml": "^3.2.7",
|
"js-yaml": "^3.2.7",
|
||||||
"leveldown": "~1.0.0",
|
"leveldown": "~0.10.0",
|
||||||
"levelup": "^0.19.0",
|
"levelup": "^0.19.0",
|
||||||
"memdown": "^1.0.0",
|
"memdown": "^1.0.0",
|
||||||
"moment": "~2.5.0",
|
"moment": "~2.5.0",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user