Merge pull request #2 from braydonf/feature/main-chain

Fixes for isMainChain binding tests.
This commit is contained in:
Patrick Nagurny 2015-09-09 10:03:29 -04:00
commit 83a83b42ea
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);