Skip to content

Commit

Permalink
Add TransactionTest.testConfidenceCacheForEmptyTxs() - failing so far.
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarguindzberg committed Apr 4, 2019
1 parent 59a6407 commit b812c03
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions core/src/test/java/org/bitcoinj/core/TransactionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -735,4 +735,13 @@ protected void bitcoinSerializeToStream(OutputStream stream, boolean useSegwit)
uint32ToByteStreamLE(getLockTime(), stream);
}
}

@Test
public void testConfidenceCacheForEmptyTxs() {
Transaction tx1 = new Transaction(UNITTEST);
tx1.getConfidence().setSource(Source.SELF);
Transaction tx2 = new Transaction(UNITTEST);
tx2.getConfidence().setSource(Source.NETWORK);
assertEquals(Source.SELF, tx1.getConfidence().getSource());
}
}

0 comments on commit b812c03

Please sign in to comment.