我指的是SO链接 How to configure notary node while running cordapp via IntelliJ
您能帮我在intellij中如何配置BFT共识吗?我指的是v3.0版的示例/公证演示,并试图在cordapp示例项目中实现
答案 0 :(得分:1)
您不能使用节点驱动程序运行BFT公证。但是,您可以按以下方式启动RAFT公证:
fun main(args: Array<String>) {
val notaryName = CordaX500Name("MyNotary", "London", "GB")
val notarySpec = NotarySpec(
name = notaryName,
validating = false,
cluster = ClusterSpec.Raft(clusterSize = 3))
driver(DriverParameters(notarySpecs = listOf(notarySpec))) {
// Driver logic.
}
}