Add an explicit test in WalletTest.blockChainCatchup for confidence levels.

This commit is contained in:
Mike Hearn 2012-05-02 16:59:50 +02:00
parent fe9cbf8b7b
commit ff770a8d83

View File

@ -228,6 +228,8 @@ public class WalletTest {
assertEquals(txn[0].getHash(), tx1.getHash());
assertEquals(BigInteger.ZERO, bigints[0]);
assertEquals(oneCoin, bigints[1]);
assertEquals(TransactionConfidence.ConfidenceType.BUILDING, tx1.getConfidence().getConfidenceType());
assertEquals(1, tx1.getConfidence().getAppearedAtChainHeight());
// Send 0.10 to somebody else.
Transaction send1 = wallet.createSend(new ECKey().toAddress(params), toNanoCoins(0, 10), myAddress);
// Pretend it makes it into the block chain, our wallet state is cleared but we still have the keys, and we