CORDA-2570 Add comment for future performance optimisation.

This commit is contained in:
Tudor Malene 2019-02-13 13:42:42 +00:00 committed by tudor.malene@gmail.com
parent fc0b1431ad
commit 3fef5d8239

View File

@ -252,6 +252,8 @@ class Verifier(val ltx: LedgerTransaction,
*
* If the target platform version of the current CorDapp is lower than 4.0, a warning will be written to the log
* if any mismatch is detected. If it is 4.0 or later, then [TransactionContractConflictException] will be thrown.
*
* Note: It should be enough to run this check only on the output states. Even more, it could be run only on distinct output contractClass/stateClass pairs.
*/
private fun validateStatesAgainstContract() = allStates.forEach(::validateStateAgainstContract)