Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: cochranizer666 on May 28, 2017, 01:25:33 PM



Title: Is it possible to share a Regtest blockchain?
Post by: cochranizer666 on May 28, 2017, 01:25:33 PM
To whom it may concern,

I have this idea where I create a new currency by creating at first a private Regtest on Bitcoin Core, then distributing my Regtest to other people to work on the same network. Can this be done, as long as everyone knows the IP address and the port number?

Thanks in advance,

cochranizer666


Title: Re: Is it possible to share a Regtest blockchain?
Post by: achow101 on May 28, 2017, 05:55:14 PM
Yes. If you setup other nodes you can use the -connect option to have those nodes connect to another one running a regtest network. You will have to explicitly tell each node what IP address and port to connect to since nodes in regtest mode will not attempt to initiate any connections unless explicitly told to do so.


Title: Re: Is it possible to share a Regtest blockchain?
Post by: cochranizer666 on May 28, 2017, 07:54:16 PM
Awesome, thanks so much for the info. I wanted to know because so I could find an easy, Ethereum-like way to create a sub-currency based on the original Bitcoin Core without having to pay millions to make a separate wallet.

Oh, by the way, my next step is for other people to try it out, so I need the command to get people to connect to my computer.

My IP is 24.46.180.129, and below is my "getnetworkinfo" output:

{
  "version": 140100,
  "subversion": "/Satoshi:0.14.1/",
  "protocolversion": 70015,
  "localservices": "000000000000000d",
  "localrelay": true,
  "timeoffset": 0,
  "networkactive": true,
  "connections": 0,
  "networks": [
    {
      "name": "ipv4",
      "limited": false,
      "reachable": true,
      "proxy": "",
      "proxy_randomize_credentials": false
    },
    {
      "name": "ipv6",
      "limited": false,
      "reachable": true,
      "proxy": "",
      "proxy_randomize_credentials": false
    },
    {
      "name": "onion",
      "limited": true,
      "reachable": false,
      "proxy": "",
      "proxy_randomize_credentials": false
    }
  ],
  "relayfee": 0.00001000,
  "incrementalfee": 0.00001000,
  "localaddresses": [
    {
      "address": "2001:0:5ef5:79fb:57:344e:e7d1:4b7e",
      "port": 18444,
      "score": 1
    }
  ],
  "warnings": ""
}

And my current coin amount is 150.00000000.


Title: Re: Is it possible to share a Regtest blockchain?
Post by: cochranizer666 on May 28, 2017, 08:11:57 PM
Never mind, I think I figured it out, but correct me if I'm wrong...

Code:
bitcoind -connect=24.46.180.129:18444 -regtest
bitcoin-qt -connect=24.46.180.129:18444 -regtest