even more fixes.
This commit is contained in:
parent
3d017c5995
commit
64b5f731a8
@ -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);
|
||||
|
||||
@ -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.'));
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user