isSpent logic

- Bitcoind's CCoinsViewMempool brings the mempool into view, but will not consider outputs therein as spent
- Changed the test description to match what is happening in that view
- Once a given tx has one confirmation, then isSpent will be true for those outputs
This commit is contained in:
Chris Kleeschulte 2015-09-21 16:11:49 -04:00
parent 05812b2301
commit 7c7abd26b1
1 changed files with 2 additions and 1 deletions

View File

@ -723,7 +723,8 @@ describe('Node Functionality', function() {
result.should.equal(true);
done();
});
it('will incorrectly return false for an input that is spent in an unconfirmed transaction', function(done) {
//CCoinsViewMemPool only checks for spent outputs that are not the mempool
it('will correctly return false for an input that is spent in an unconfirmed transaction', function(done) {
node.services.address.getUnspentOutputs(address, false, function(err, results) {
if (err) {
throw err;