diff --git a/test/integration/nodecheck.js b/test/integration/nodecheck.js new file mode 100644 index 0000000..1cfef43 --- /dev/null +++ b/test/integration/nodecheck.js @@ -0,0 +1,17 @@ +'use strict'; + +var BlockDb = require('../../lib/BlockDb').class(); +var height_needed = 180000; +var bDb = new BlockDb(); + +var expect = require('chai').expect; + +describe('Node check', function() { + it('should contain block ' + height_needed, function(done) { + bDb.blockIndex(height_needed, function(err, b) { + expect(err).to.equal(null); + expect(b).to.not.equal(null); + done(); + }); + }); +});