UNPKG

insight-bitcore-api

Version:

An open-source bitcoin blockchain API. The Insight API provides you with a convenient, powerful and simple way to query and broadcast data on the bitcoin network and build your own services with it.

18 lines (14 loc) 409 B
'use strict'; var BlockDb = require('../../lib/BlockDb').default(); var height_needed = 180000; var bDb = 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(); }); }); });