简体   繁体   English

如何使用bitcore创建私有比特币网络?

[英]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.

相关问题 如何将bitcore-lib连接到正在运行的完整节点比特币 - How to connect bitcore-lib to a running full node-bitcoin Bitcore MultiSig-如何签署部分签名的MultiSig比特币交易 - Bitcore multisig - how to sign a partially signed multisig bitcoin transaction 与Bitcore简单的一对一比特币交易 - Simple 1-to-1 Bitcoin Transaction with Bitcore 如何从私钥创建比特币钱包? - How Create Bitcoin wallet from a private key works? 使用随机对等点发现模拟私有比特币网络 - Simulate private bitcoin network with random peer discovery 如何使用 NBitcoin 从 ExtPrivKey 获取比特币私钥 - How to get Bitcoin Private Key from an ExtPrivKey using NBitcoin 将 bitcore-explorer 与 bitcore-lib (Bitcore) 一起使用时出错 - Error when using bitcore-explorer with bitcore-lib (Bitcore) 如何使用 bitcoincashjs javascript 库创建比特币现金私钥、钱包和地址? - How to create bitcoin cash private key, wallet and address with bitcoincashjs javascript library? 如何将比特币私钥导入 BigInteger? - How to import a bitcoin private key to BigInteger? 如何在android中使用bitcoinj(walletappkit)从助记符创建比特币钱包 - How to create bitcoin wallet from mnemonics using bitcoinj (walletappkit) in android
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM