TransactionConfidence changes (coinbase phase 2) + Mike's feedback

This commit is contained in:
Jim Burton
2012-05-21 15:18:49 +01:00
committed by Mike Hearn
parent d1c2dfecbe
commit 80f141cbf5
11 changed files with 487 additions and 111 deletions

View File

@@ -125,13 +125,9 @@ public class PingService {
System.out.println("Confidences of wallet transactions:");
for (Transaction tx : transactions) {
System.out.println(tx);
try {
System.out.println(tx.getConfidence());
if (tx.getConfidence().getConfidenceType() == TransactionConfidence.ConfidenceType.BUILDING)
System.out.println("Work done: " + tx.getConfidence().getWorkDone(chain).toString());
} catch (BlockStoreException e) {
throw new RuntimeException(e);
}
System.out.println(tx.getConfidence());
if (tx.getConfidence().getConfidenceType() == TransactionConfidence.ConfidenceType.BUILDING)
System.out.println("Work done: " + tx.getConfidence().getWorkDone().toString());
System.out.println();
}
}