Fixes for isMainChain binding tests.

This commit is contained in:
Braydon Fuller 2015-09-08 17:42:33 -04:00
parent 0ff742c1b6
commit a9f990bdf4
2 changed files with 2 additions and 2 deletions

View File

@ -210,7 +210,7 @@ describe('Node Functionality', function() {
});
it('isMainChain() will return false for stale/orphan block', function(done) {
bitcoind.isMainChain(invalidatedBlockHash).should.equal(false);
node.services.bitcoind.isMainChain(invalidatedBlockHash).should.equal(false);
setImmediate(done);
});
});

View File

@ -251,7 +251,7 @@ describe('Daemon Binding Functionality', function() {
});
});
describe('isMainChain', funciton() {
describe('isMainChain', function() {
[1,2,3,4,5,6,7,8,9].forEach(function(i) {
it('block ' + i + ' is on the main chain', function() {
bitcoind.isMainChain(blockHashes[i]).should.equal(true);