Bitcoin Forum
April 26, 2024, 09:21:23 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to kick start a private bitcoin network?  (Read 2220 times)
thomas41546 (OP)
Newbie
*
Offline Offline

Activity: 43
Merit: 0


View Profile
June 23, 2011, 07:08:34 PM
 #1

So far I have 3 virtual machines running linux. My nodes are 100% attempting to generate coins are 100% connected to each other.
Each is running the bitcoin daemon with the following configuration settings.

gen=1
connect=192.168.70.128
connect=192.168.70.129
noirc=1

The nodes are connected to each other via the bitcoin daemon. When I go ./bitcoind getinfo I see 2 connections for each node.

My problem is that for some reason bitcoins are not being generated.

I believe the problem lies at the genesis block. Does the genesis block need to have the public key set to one of my nodes? Right now I have it set to default so the public key refrenced in the genesis block is the default.

I have tried to look around on these forums and IRC... so far I have not found the specifics of starting a custom network.

Any help would be great. Thanks a lot.
1714123283
Hero Member
*
Offline Offline

Posts: 1714123283

View Profile Personal Message (Offline)

Ignore
1714123283
Reply with quote  #2

1714123283
Report to moderator
1714123283
Hero Member
*
Offline Offline

Posts: 1714123283

View Profile Personal Message (Offline)

Ignore
1714123283
Reply with quote  #2

1714123283
Report to moderator
1714123283
Hero Member
*
Offline Offline

Posts: 1714123283

View Profile Personal Message (Offline)

Ignore
1714123283
Reply with quote  #2

1714123283
Report to moderator
If you want to be a moderator, report many posts with accuracy. You will be noticed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714123283
Hero Member
*
Offline Offline

Posts: 1714123283

View Profile Personal Message (Offline)

Ignore
1714123283
Reply with quote  #2

1714123283
Report to moderator
luxgladius
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
June 23, 2011, 07:29:14 PM
 #2

Just glancing at the code, you probably have to specify the -testnet argument as well.
thomas41546 (OP)
Newbie
*
Offline Offline

Activity: 43
Merit: 0


View Profile
June 23, 2011, 07:52:07 PM
 #3

I'm trying to create my own private bitcoin network. I don't want to connect to an already existing network such as testnet.
luxgladius
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
June 23, 2011, 08:11:29 PM
 #4

Then you'll need to modify the code and recompile. The place I saw testnet being referenced was here:

Code:
void BitcoinMiner()
{
        ...
        while (vNodes.empty() || IsInitialBlockDownload())
        {
            Sleep(1000);
            if (fShutdown)
                return;
            if (!fGenerateBitcoins)
                return;
        }

...

bool IsInitialBlockDownload()
{
    if (pindexBest == NULL || (!fTestNet && nBestHeight < 118000))
        return true;

So currently it's hard-coded to not even try to generate blocks until after it has 118000 unless it's on a test net. Among other things affected by the testnet flag are the genesis block.
thomas41546 (OP)
Newbie
*
Offline Offline

Activity: 43
Merit: 0


View Profile
June 23, 2011, 08:35:15 PM
 #5

Oh that is beautiful. Grin

I had no idea that was hard coded in there. I'll have a go at the -testnet flag on my private network, as you previously mentioned.  Roll Eyes

Thanks a lot. 
coinage
Member
**
Offline Offline

Activity: 60
Merit: 10


View Profile
June 23, 2011, 08:45:53 PM
 #6

Also, the actual bitcoin genesis block was partly hand-tweaked, so to speak.  For one thing, it has a text message embedded in its coinbase parameter, unlike succeeding blocks.  This may be irrelevant however.  I haven't looked into running a standalone testnet.

Then there is the more recent example of the Namecoin project's genesis block...
MoonShadow
Legendary
*
Offline Offline

Activity: 1708
Merit: 1007



View Profile
June 23, 2011, 09:03:16 PM
 #7

If you intend to do this, please change the genesis block and remove the benchmarking code.  Change the default port number, also.

"The powers of financial capitalism had another far-reaching aim, nothing less than to create a world system of financial control in private hands able to dominate the political system of each country and the economy of the world as a whole. This system was to be controlled in a feudalist fashion by the central banks of the world acting in concert, by secret agreements arrived at in frequent meetings and conferences. The apex of the systems was to be the Bank for International Settlements in Basel, Switzerland, a private bank owned and controlled by the world's central banks which were themselves private corporations. Each central bank...sought to dominate its government by its ability to control Treasury loans, to manipulate foreign exchanges, to influence the level of economic activity in the country, and to influence cooperative politicians by subsequent economic rewards in the business world."

- Carroll Quigley, CFR member, mentor to Bill Clinton, from 'Tragedy And Hope'
RSantana
Member
**
Offline Offline

Activity: 111
Merit: 10


CoinedBits.com


View Profile WWW
June 23, 2011, 09:07:08 PM
 #8

I'm interested in hearing how this works. Let us know if you get it working and what you had to do.

Check out the first physical bitcoin at http://CoinedBits.com
zipxavier
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
June 23, 2011, 09:08:26 PM
 #9

Yes if there was an easy guide I'd be interested.
MoonShadow
Legendary
*
Offline Offline

Activity: 1708
Merit: 1007



View Profile
June 23, 2011, 11:18:12 PM
 #10

You are in pioneer territory.  There will be no guide until the pioneers have made one.

"The powers of financial capitalism had another far-reaching aim, nothing less than to create a world system of financial control in private hands able to dominate the political system of each country and the economy of the world as a whole. This system was to be controlled in a feudalist fashion by the central banks of the world acting in concert, by secret agreements arrived at in frequent meetings and conferences. The apex of the systems was to be the Bank for International Settlements in Basel, Switzerland, a private bank owned and controlled by the world's central banks which were themselves private corporations. Each central bank...sought to dominate its government by its ability to control Treasury loans, to manipulate foreign exchanges, to influence the level of economic activity in the country, and to influence cooperative politicians by subsequent economic rewards in the business world."

- Carroll Quigley, CFR member, mentor to Bill Clinton, from 'Tragedy And Hope'
Lord T
Newbie
*
Offline Offline

Activity: 12
Merit: 0


View Profile
July 24, 2011, 07:56:22 PM
 #11

Sounds interesting. I was thinking of doing the same thing for a small local barter system.

Is the point to set up your own currency? Will the exchange rate be linked to Bitcoins or USD for example?
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!