even more fixes.

This commit is contained in:
Christopher Jeffrey 2016-02-23 00:38:32 -08:00
parent 3d017c5995
commit 64b5f731a8
2 changed files with 5 additions and 2 deletions

View File

@ -855,7 +855,7 @@ BlockDB.prototype.getBlock = function getBlock(hash, callback) {
if (data) {
try {
block = self.parse.parseBlock(data);
block = self.parser.parseBlock(data);
block = new bcoin.block(block, 'block');
} catch (e) {
return callback(e);

View File

@ -255,9 +255,12 @@ HTTPServer.prototype._initRouter = function _initRouter() {
if (!routes)
return done(new Error('No routes found.'));
(function next() {
(function next(err) {
var route, path, callback, compiled, matched;
if (err)
return done(err);
if (i === routes.length)
return done(new Error('Route not found.'));