简体   繁体   English

如何启动bootnode?

[英]How can I startup bootnode?

I'm trying to start up bootnode, but I got couldn't get connect information. 我正在尝试启动bootnode,但无法获取连接信息。

It's suppose to be like this 应该是这样的

bootnode --nodekey=boot.key
INFO [06-22|00:43:07] UDP listener up                          self=enode://1da6f7b4de57b79d1d646d77539665145b5e4076842ec94b9506a508d1621908c93a94d4c6b1474ad43530629a621743ef4af90adc4e9b059bb11c181e539f23@[::]:30301

However, I always got this. 但是,我总是这样。

➜  bootnode bootnode --nodekey boot.key
INFO [03-18|18:39:48.143] New local node record                    seq=1 id=b15d4bb355899b44 ip=<nil> udp=0 tcp=0

genesis.json is this. genesis.json是这个。

{
  "config": {
    "chainId": 15,
    "homesteadBlock": 0,
    "eip155Block": 0,
    "eip158Block": 0,
    "byzantiumBlock": 0
  },
  "coinbase"   : "0x0000000000000000000000000000000000000000",
  "difficulty" : "0x1",
  "extraData"  : "",
  "gasLimit"   : "0x2fefd8",
  "nonce"      : "0x0000000000000042",
  "mixhash"    : "0x0000000000000000000000000000000000000000000000000000000000000000",
  "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
  "timestamp"  : "0x00",
  "alloc": {
    "945cd603a6754cb13c3d61d8fe240990f86f9f8a": { "balance": "500000000000000000000000000" },
    "66b4e7be902300f9a15d900822bbd8803be87391": { "balance": "500000000000000000000000000" },
    "104f0d848da3f760dddadc56fc4ab78305110dba": { "balance": "500000000000000000000000000" },
    "addfaa808c59581f04cdadfc0be28ebfb520e839": { "balance": "500000000000000000000000000" },
    "450a8a99bf5ad49db301f6068c619de2400de6f7": { "balance": "500000000000000000000000000" }
  }
}

Is there any problem? 有什么问题吗?

Could you give me any tips, please? 请给我任何提示吗?

我的朋友很容易,如果您想获取bootnode的enode地址,只需在命令中添加--writeaddress即可,如下所示:

bootnode bootnode --nodekey boot.key --writeaddress

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何检测 macOS 上的 Node 应用程序启动文件夹? - How can I detect Node app startup folder on macOS? 如何让 Svelte 的 DraggableDraw 组件在启动时不打开? - How can I make Svelte's DraggableDraw component not open at startup? 我可以在启动时在机器人上创建频道吗? - Can I create a channel at bot on startup? 如何在Three.js编辑器中加载启动时的CTM文件? - How can I load a CTM file on startup in the three.js editor? 在所有ASP.NET启动脚本执行完毕后,如何执行某些Javascript? - How can I execute some Javascript after all ASP.NET startup scripts have been executed? 如何在没有Java调试的情况下在网站启动时在Visual Studio中启动新的Chrome实例? - How can I start a new Chrome instance in Visual Studio on website startup without Javascript Debugging? 如何在iPhone模拟器中查看嵌入式Web应用程序的启动日志记录 - How can I see the startup logging of an embedded web application in my iphone simulator 如何在Open Shift中修改节点启动命令? - How do I modify the node startup command in Open Shift? 如何在启动时删除所有 tinymce 实例? - How do I remove all tinymce instances at startup? 执行 C# 代码并注册 JavaScript 启动脚本时,如何停止页面刷新? - How do I stop a page refresh when C# code behind is executed and a JavaScript startup script is registered?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM