Disable enhanced validation, rename SQL patches (#6799)

This commit is contained in:
Denis Rekalov 2020-11-06 12:32:41 +00:00 committed by GitHub
parent 82a114a329
commit d9f905cb81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 5 additions and 5 deletions

View File

@ -88,7 +88,7 @@ data class ContractUpgradeWireTransaction(
init {
check(inputs.isNotEmpty()) { "A contract upgrade transaction must have inputs" }
checkBaseInvariants()
privacySalt.validateFor(digestService.hashAlgorithm)
// privacySalt.validateFor(digestService.hashAlgorithm)
}
/**

View File

@ -81,7 +81,7 @@ class WireTransaction(componentGroups: List<ComponentGroup>, val privacySalt: Pr
check(commands.isNotEmpty()) { "A transaction must contain at least one command" }
if (timeWindow != null) check(notary != null) { "Transactions with time-windows must be notarised" }
// TODO(iee): review salt validation - Should we just warn when privacy bytes already >= 32 but <= digestLength?
privacySalt.validateFor(digestService.hashAlgorithm)
// privacySalt.validateFor(digestService.hashAlgorithm)
}
/** The transaction id is represented by the root hash of Merkle tree over the transaction components. */

View File

@ -31,10 +31,10 @@
<!-- This must run after node-core.changelog-init.xml, to prevent database columns being created twice. -->
<include file="migration/vault-schema.changelog-v9.xml"/>
<include file="migration/node-core.changelog-v17.xml"/>
<include file="migration/node-core.changelog-v19.xml"/>
<include file="migration/node-core.changelog-v19-postgres.xml"/>
<include file="migration/node-core.changelog-v19-keys.xml"/>
<include file="migration/node-core.changelog-v21.xml"/>
</databaseChangeLog>

View File

@ -11,6 +11,6 @@
<include file="migration/node-notary.changelog-committed-transactions-table.xml" />
<include file="migration/node-notary.changelog-v3.xml" />
<include file="migration/node-notary.changelog-worker-logging.xml" />
<include file="migration/node-notary.changelog-v100.xml"/>
<include file="migration/node-notary.changelog-v4.xml"/>
</databaseChangeLog>