Bitcoin Forum
May 13, 2024, 09:56:11 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Is it possible to share a Regtest blockchain?  (Read 485 times)
cochranizer666 (OP)
Full Member
***
Offline Offline

Activity: 137
Merit: 100


View Profile
May 28, 2017, 01:25:33 PM
 #1

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
1715637371
Hero Member
*
Offline Offline

Posts: 1715637371

View Profile Personal Message (Offline)

Ignore
1715637371
Reply with quote  #2

1715637371
Report to moderator
"If you don't want people to know you're a scumbag then don't be a scumbag." -- margaritahuyan
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715637371
Hero Member
*
Offline Offline

Posts: 1715637371

View Profile Personal Message (Offline)

Ignore
1715637371
Reply with quote  #2

1715637371
Report to moderator
1715637371
Hero Member
*
Offline Offline

Posts: 1715637371

View Profile Personal Message (Offline)

Ignore
1715637371
Reply with quote  #2

1715637371
Report to moderator
1715637371
Hero Member
*
Offline Offline

Posts: 1715637371

View Profile Personal Message (Offline)

Ignore
1715637371
Reply with quote  #2

1715637371
Report to moderator
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6635


Just writing some code


View Profile WWW
May 28, 2017, 05:55:14 PM
 #2

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.

cochranizer666 (OP)
Full Member
***
Offline Offline

Activity: 137
Merit: 100


View Profile
May 28, 2017, 07:54:16 PM
 #3

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.
cochranizer666 (OP)
Full Member
***
Offline Offline

Activity: 137
Merit: 100


View Profile
May 28, 2017, 08:11:57 PM
 #4

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
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!