Merge pull request #64 from maraoz/polish/txs

solves leveldown problem
This commit is contained in:
Manuel Aráoz 2015-04-29 23:09:45 -03:00
commit b5272fd398
3 changed files with 6 additions and 3 deletions

View File

@ -15,7 +15,7 @@ var BitcoreHTTP = require('../../lib/http');
var BitcoreNode = require('../../../');
var mockTransactions = require('../data/transactions');
describe.only('BitcoreHTTP v1 transactions routes', function() {
describe('BitcoreHTTP v1 transactions routes', function() {
// mocks
var mockValidTx = new Transaction();

View File

@ -232,7 +232,10 @@ BlockService.prototype._getLatestHash = function() {
var self = this;
return Promise.try(function() {
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;
});
};

View File

@ -47,7 +47,7 @@
"express": "4.11.1",
"glob": "*",
"js-yaml": "^3.2.7",
"leveldown": "~1.0.0",
"leveldown": "~0.10.0",
"levelup": "^0.19.0",
"memdown": "^1.0.0",
"moment": "~2.5.0",