Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: walerikus on June 12, 2020, 11:06:18 AM



Title: How to launch a test Bitcoin network from 0 genesis block?
Post by: walerikus on June 12, 2020, 11:06:18 AM
I have downloaded Bitcoin v1.0 but I guess it doesn't launch because it tries to connect to existing network but the version is incompatible. What modifications are required to launch it from zero block?

Is there any threads that can help explaining how to do it? I'm interested only in Bitcoin like blockchain testnet, proof of work without any premine, etc.


Title: Re: How to launch a test Bitcoin network from 0 genesis block?
Post by: nc50lc on June 12, 2020, 12:17:39 PM
Use --regtest? Although I'm not sure if Bitcoin v1.0 have regtest mode.
Try to launch bitcoin with --regtest argument or create a shortcut and add --regtest at the end of "target".


Title: Re: How to launch a test Bitcoin network from 0 genesis block?
Post by: walerikus on June 28, 2020, 05:47:50 PM
Yes, I was meaning V0.1 I'd like to try a new Bitcoin network since 0 genesis block, is it difficult to launch a new pow based blockchain only like Bitcoin.


Title: Re: How to launch a test Bitcoin network from 0 genesis block?
Post by: sukbir on June 29, 2020, 01:55:33 AM
Quote
I have downloaded Bitcoin v1.0 but I guess it doesn't launch because it tries to connect to existing network but the version is incompatible.

I have tested Bitcoin v0.1.0 and Bitcoin v0.1.3 both version launched with no problem you can still generate bitcoin address but it doesn't connect to network or download any blockchain files. It is compatible with Windows 10, 8.1, 7 and XP. I am not sure about MacOS. I have attached screen shot.


https://i.ibb.co/SB8NTqt/Untitled.jpg

Download source: https://satoshi.nakamotoinstitute.org/code/ (https://satoshi.nakamotoinstitute.org/code/)

Quote
What modifications are required to launch it from zero block?Is there any threads that can help explaining how to do it? I'm interested only in Bitcoin like blockchain testnet, proof of work without any premine, etc.

Me and my mate we tried but can't success.


Title: Re: How to launch a test Bitcoin network from 0 genesis block?
Post by: DaveF on June 29, 2020, 03:42:10 AM
Check out this YouTube video
https://www.youtube.com/watch?v=ENaTmbh8Xuw

It's actually #2 in a series of 6. I think in this one he discusses what you need to do to generate the genesis block.
Might be in a later one, but they are all short videos that you can watch to see if you missed anything.

-Dave


Title: Re: How to launch a test Bitcoin network from 0 genesis block?
Post by: slancer on June 29, 2020, 01:28:35 PM
disconnect from internet and make a local network of nodes using `connect` command.


Title: Re: How to launch a test Bitcoin network from 0 genesis block?
Post by: walerikus on July 02, 2020, 05:00:42 PM
disconnect from internet and make a local network of nodes using `connect` command.

Where do I use "connect" command?
Tried to launch Bitcoin 0.1v without internet, it shuts down immediately as it launches.


Title: Re: How to launch a test Bitcoin network from 0 genesis block?
Post by: sukbir on July 04, 2020, 09:37:20 AM
disconnect from internet and make a local network of nodes using `connect` command.

Where do I use "connect" command?
Tried to launch Bitcoin 0.1v without internet, it shuts down immediately as it launches.

Which OS are you using now? I have no problem with windows 10.


Title: Re: How to launch a test Bitcoin network from 0 genesis block?
Post by: walerikus on July 06, 2020, 09:16:14 AM
disconnect from internet and make a local network of nodes using `connect` command.

Where do I use "connect" command?
Tried to launch Bitcoin 0.1v without internet, it shuts down immediately as it launches.

Which OS are you using now? I have no problem with windows 10.

I also use Windows 10.


Title: Re: How to launch a test Bitcoin network from 0 genesis block?
Post by: DaveF on July 06, 2020, 12:03:19 PM
Can you post the debug logfile that it created?

I *think* (it's been a while) that you have to do an addnode = private IP of the other node in the conf file.
But, since it's 10 year old code that I have not looked at in 7+ years I can't be sure.

I don't even have my config notes from that era so I can't be much help but I'll try.

-Dave


Title: Re: How to launch a test Bitcoin network from 0 genesis block?
Post by: slancer on July 08, 2020, 06:52:58 AM
disconnect from internet and make a local network of nodes using `connect` command.

Where do I use "connect" command?
Tried to launch Bitcoin 0.1v without internet, it shuts down immediately as it launches.
from command line or use addnode in  config file. remove all files except config file to fix shutdown problem.