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:
parent
05812b2301
commit
7c7abd26b1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue