【问题标题】:which port I use when I want to connect remix to my local quorum network?当我想将 remix 连接到我的本地仲裁网络时,我使用哪个端口?
【发布时间】:2019-06-04 13:36:23
【问题描述】:

我想在我的本地网络上部署智能合约。 我通过

执行了一个本地节点
       PRIVATE_CONFIG=ignore nohup geth --datadir ./Node1/new- 
       node-1 
       --nodiscover --verbosity 5 --networkid 31337 --raft -- 
       raftport 51001 --rpc --rpcaddr 0.0.0.0 --rpcport 22101 -- 
       rpcapi 
       admin,db,eth,debug,miner,net,shh,txpool,personal,web3, 
       quorum,raft --emitcheckpoints --port 21101 2>>node1.log &

我必须使用 localhost:\127.0.0.1:21101 还是 22101? 我想知道这两个端口的区别和用途是什么?

如果您不介意,还有一个问题: 当我使用端口 21101 时,它无法连接,当我查阅节点日志时,我发现:

        Failed RLPx handshake addr=[::1]:42552  conn=inbound    
        err="read tcp [::1]:21102->[::1]:42552:  i/o timeout"

【问题讨论】:

    标签: blockchain ethereum geth quorum


    【解决方案1】:

    您需要使用 RPC 端口号来连接网络。

    For examples: http://localhost:22101

    Raft 端口和 RPC 端口的区别?

    默认情况下,Quorum 在端口 50400 上侦听 raft 传输,但这可以使用 --raftport 标志进行配置。

    您可以使用 --rpc 标志启动 HTTP JSON-RPC,以更改默认端口 (8545) --rpcport <portnumber> 如果从浏览器访问 RPC,则需要使用适当的域集启用 CORS。否则,JavaScript 调用会受到同源策略的限制,请求会失败:

    For examples: geth --rpc --rpccorsdomain "http://localhost:3000"

    尝试使用http://remix.ethereum.org/ 连接本地网络(不安全的网络)。如果启用了 Https 证书,则可以使用https://remix.ethereum.org/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-11-07
      • 1970-01-01
      • 2020-02-13
      • 2017-08-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多