mirror of
https://github.com/corda/corda.git
synced 2025-02-21 17:56:54 +00:00
Adjust warning level.
This commit is contained in:
parent
6314c1757a
commit
758c855493
@ -7,6 +7,7 @@ import net.corda.core.crypto.SecureHash
|
|||||||
import net.corda.core.crypto.isFulfilledBy
|
import net.corda.core.crypto.isFulfilledBy
|
||||||
import net.corda.core.internal.AttachmentWithContext
|
import net.corda.core.internal.AttachmentWithContext
|
||||||
import net.corda.core.internal.isUploaderTrusted
|
import net.corda.core.internal.isUploaderTrusted
|
||||||
|
import net.corda.core.internal.warnOnce
|
||||||
import net.corda.core.serialization.CordaSerializable
|
import net.corda.core.serialization.CordaSerializable
|
||||||
import net.corda.core.transactions.TransactionBuilder
|
import net.corda.core.transactions.TransactionBuilder
|
||||||
import net.corda.core.utilities.loggerFor
|
import net.corda.core.utilities.loggerFor
|
||||||
@ -53,7 +54,7 @@ data class HashAttachmentConstraint(val attachmentId: SecureHash) : AttachmentCo
|
|||||||
override fun isSatisfiedBy(attachment: Attachment): Boolean {
|
override fun isSatisfiedBy(attachment: Attachment): Boolean {
|
||||||
return when {
|
return when {
|
||||||
disableHashConstraints -> {
|
disableHashConstraints -> {
|
||||||
log.warn("Skipping hash constraints verification.")
|
log.warnOnce("Skipping hash constraints verification.")
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
attachment is AttachmentWithContext -> {
|
attachment is AttachmentWithContext -> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user