Merge pull request #2 from braydonf/feature/main-chain
Fixes for isMainChain binding tests.
This commit is contained in:
commit
83a83b42ea
@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user