【问题标题】:In Corda, how can I configure a node's web port when using the node driver?在 Corda 中,如何在使用节点驱动程序时配置节点的 Web 端口?
【发布时间】:2018-07-26 18:53:21
【问题描述】:

我正在使用 Corda 节点驱动程序来启动一个节点。如何配置节点的 web 端口?

【问题讨论】:

    标签: corda


    【解决方案1】:

    您需要为webAddress 属性传入一个自定义覆盖。

    在下面的示例中,我们将节点的 web 端口设置为12345

    fun main(args: Array<String>) {
        driver {
            val nodeHandle = startNode(
                    customOverrides = mapOf("webAddress" to "localhost:12345")
            ).getOrThrow()
    
            startWebserver(nodeHandle).get()
        }
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-11-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-06-20
      • 2019-01-08
      • 1970-01-01
      相关资源
      最近更新 更多