mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2024-11-19 18:00:39 +01:00
Add an explicit test in WalletTest.blockChainCatchup for confidence levels.
This commit is contained in:
parent
fe9cbf8b7b
commit
ff770a8d83
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user