mirror of
https://github.com/corda/corda.git
synced 2025-02-01 00:45:59 +00:00
Add warning to notary demo Cordform extensions (#1477)
Add warning to not use the notary demo Cordform extension pattern, as it's experimental and should be replaced later on.
This commit is contained in:
parent
798e99a588
commit
369d204e7a
@ -21,6 +21,8 @@ fun main(args: Array<String>) = BFTNotaryCordform.runNodes()
|
||||
private val clusterSize = 4 // Minimum size that tolerates a faulty replica.
|
||||
private val notaryNames = createNotaryNames(clusterSize)
|
||||
|
||||
// This is not the intended final design for how to use CordformDefinition, please treat this as experimental and DO
|
||||
// NOT use this as a design to copy.
|
||||
object BFTNotaryCordform : CordformDefinition("build" / "notary-demo-nodes", notaryNames[0].toString()) {
|
||||
private val serviceType = BFTNonValidatingNotaryService.type
|
||||
private val clusterName = CordaX500Name(serviceType.id, "BFT", "Zurich", "CH")
|
||||
|
@ -19,6 +19,8 @@ internal fun createNotaryNames(clusterSize: Int) = (0 until clusterSize).map { C
|
||||
|
||||
private val notaryNames = createNotaryNames(3)
|
||||
|
||||
// This is not the intended final design for how to use CordformDefinition, please treat this as experimental and DO
|
||||
// NOT use this as a design to copy.
|
||||
object RaftNotaryCordform : CordformDefinition("build" / "notary-demo-nodes", notaryNames[0].toString()) {
|
||||
private val serviceType = RaftValidatingNotaryService.type
|
||||
private val clusterName = CordaX500Name(serviceType.id, "Raft", "Zurich", "CH")
|
||||
|
@ -18,6 +18,8 @@ fun main(args: Array<String>) = SingleNotaryCordform.runNodes()
|
||||
|
||||
val notaryDemoUser = User("demou", "demop", setOf(startFlowPermission<DummyIssueAndMove>(), startFlowPermission<RPCStartableNotaryFlowClient>()))
|
||||
|
||||
// This is not the intended final design for how to use CordformDefinition, please treat this as experimental and DO
|
||||
// NOT use this as a design to copy.
|
||||
object SingleNotaryCordform : CordformDefinition("build" / "notary-demo-nodes", DUMMY_NOTARY.name.toString()) {
|
||||
init {
|
||||
node {
|
||||
|
Loading…
x
Reference in New Issue
Block a user