[英]How to create a private bitcoin network using bitcore?
I'm trying to create a private bitcoin network using bitcore. 我正在尝试使用bitcore创建一个专用的比特币网络。 But bitcore sync's data either with bitcoin livenet or testnet. 但是bitcore的数据可以通过比特币livenet或testnet进行同步。 I couldn;t find any bitcore documentation which will allow me to create a network from scratch. 我找不到任何可以让我从头开始创建网络的位核心文档。
I followed the instruction from below link 我按照下面链接的说明进行操作
https://bitcore.io/guides/full-node https://bitcore.io/guides/full-node
{
"network": "livenet" or "testnet" || what do i have to put for private network?
"port": 3001,
"https": true
}
I think you need to add your custom info in the bitcore-node.json
which is created in your node directory 我认为您需要在节点目录中创建的bitcore-node.json
添加自定义信息
{
"network": "livenet", // your coins network name
"port": 3001, // your coins port
"services": [
"bitcoind", // required services
"web"
],
"servicesConfig": {
"bitcoind": {
"datadir": "/home/user/.bitcoin", //your coins directory
"exec": "/home/user/bitcoin/src/bitcoind" //your coins executable
}
}
}
So changing 所以改变
"network": "livenet"
to whatever yours is called should do the job. 无论您叫什么,都应该做。 Now you should be able to run your custom node with a different network. 现在,您应该可以在其他网络上运行自定义节点了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.