dash/qa/rpc-tests
Gavin Andresen 2b72d46f42 Handle "conflicted" transactions properly
Extend CMerkleTx::GetDepthInMainChain with the concept of
a "conflicted" transaction-- a transaction generated by the wallet
that is not in the main chain or in the mempool, and, therefore,
will likely never be confirmed.

GetDepthInMainChain() now returns -1 for conflicted transactions
(0 for unconfirmed-but-in-the-mempool, and >1 for confirmed).

This makes getbalance, getbalance '*', and listunspent all agree when there are
mutated transactions in the wallet.

Before:
 listunspent: one 49BTC output
 getbalance: 96 BTC (change counted twice)
 getbalance '*': 46 BTC (spends counted twice)

After: all agree, 49 BTC available to spend.
2014-02-14 11:08:40 -05:00
..
README.md Integration tests via RPC calls 2013-11-27 14:21:05 +10:00
send.sh Make qa/rpc-tests/ compatible with OSX 2014-02-13 14:25:38 -05:00
txnmall.sh Handle "conflicted" transactions properly 2014-02-14 11:08:40 -05:00
util.sh Make qa/rpc-tests/ compatible with OSX 2014-02-13 14:25:38 -05:00
wallet.sh qt5: fix --with-qt with no arguments 2014-01-10 16:30:33 -05:00

Regression tests of RPC interface

wallet.sh : Test wallet send/receive code (see comments for details)

util.sh : useful re-usable functions