mirror of
https://github.com/corda/corda.git
synced 2025-06-14 05:08:18 +00:00
ENT-2822: Move experimental raft and bft-smart notaries back into node, fix reference state support (#4509)
Move Raft and BFT-Smart notaries back into node to preserve backwards compatibility. * Allow overriding full node config when using internal mock network parameters. * Make BFT-Smart notary start up in prod mode as well * Move raft & bftsmart notaries to net.corda.notary.experimental package * Make sure Raft notary handles reference state edge cases correctly. * Make sure BFT-Smart notary handles reference state edge cases correctly. * Include notary schemas in node internal schemas * Undo Raft notary table schema changes to maintain compatibility.
This commit is contained in:
@ -163,7 +163,7 @@ internal constructor(private val initSerEnv: Boolean,
|
||||
private fun isBFTNotary(config: Config): Boolean {
|
||||
// TODO: pass a commandline parameter to the bootstrapper instead. Better yet, a notary config map
|
||||
// specifying the notary identities and the type (single-node, CFT, BFT) of each notary to set up.
|
||||
return config.getString("notary.className").contains("BFT", true)
|
||||
return config.hasPath("notary.bftSMaRt")
|
||||
}
|
||||
|
||||
private fun generateServiceIdentitiesForNotaryClusters(configs: Map<Path, Config>) {
|
||||
|
@ -158,6 +158,10 @@ class SchemaMigration(
|
||||
if (schemas.any { schema -> schema.migrationResource == "node-notary.changelog-master" })
|
||||
preV4Baseline.addAll(listOf("migration/node-notary.changelog-init.xml",
|
||||
"migration/node-notary.changelog-v1.xml"))
|
||||
|
||||
if (schemas.any { schema -> schema.migrationResource == "notary-raft.changelog-master" })
|
||||
preV4Baseline.addAll(listOf("migration/notary-raft.changelog-init.xml",
|
||||
"migration/notary-raft.changelog-v1.xml"))
|
||||
}
|
||||
if (isFinanceAppWithLiquibaseNotMigrated) {
|
||||
preV4Baseline.addAll(listOf("migration/cash.changelog-init.xml",
|
||||
|
Reference in New Issue
Block a user