From bdadaffbc0ab765e01c4a78511869f17f4ee683e Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Wed, 17 Feb 2016 15:38:37 +0100 Subject: [PATCH] Minor: Logging of how many transactions were validated in TransactionGroup.verify() --- src/main/kotlin/core/TransactionVerification.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/kotlin/core/TransactionVerification.kt b/src/main/kotlin/core/TransactionVerification.kt index 4c28d52453..e21c179deb 100644 --- a/src/main/kotlin/core/TransactionVerification.kt +++ b/src/main/kotlin/core/TransactionVerification.kt @@ -9,6 +9,7 @@ package core import core.crypto.SecureHash +import core.utilities.loggerFor import java.util.* class TransactionResolutionException(val hash: SecureHash) : Exception() @@ -23,6 +24,9 @@ class TransactionConflictException(val conflictRef: StateRef, val tx1: LedgerTra * [nonVerifiedRoots] set. Transactions in the non-verified set are ignored other than for looking up input states. */ class TransactionGroup(val transactions: Set, val nonVerifiedRoots: Set) { + companion object { + val logger = loggerFor() + } /** * Verifies the group and returns the set of resolved transactions. @@ -55,6 +59,9 @@ class TransactionGroup(val transactions: Set, val nonVerified for (tx in resolved) tx.verify(programMap) + + logger.trace("Successfully run the contracts for ${resolved.size} transaction(s)") + return resolved }