2014-02-11 08:22:57 -08:00
|
|
|
'use strict';
|
|
|
|
|
2014-03-10 11:06:10 -07:00
|
|
|
var BlockDb = require('../../lib/BlockDb').default();
|
2014-02-11 08:22:57 -08:00
|
|
|
var height_needed = 180000;
|
2014-03-10 11:06:10 -07:00
|
|
|
var bDb = BlockDb;
|
2014-02-11 08:22:57 -08:00
|
|
|
|
|
|
|
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();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|