thomas41546 (OP)
Newbie
Offline
Activity: 43
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 23, 2011, 07:08:34 PM |
|
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.
|
|
|
|
luxgladius
Newbie
Offline
Activity: 28
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 23, 2011, 07:29:14 PM |
|
Just glancing at the code, you probably have to specify the -testnet argument as well.
|
|
|
|
thomas41546 (OP)
Newbie
Offline
Activity: 43
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 23, 2011, 07:52:07 PM |
|
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
Activity: 28
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 23, 2011, 08:11:29 PM |
|
Then you'll need to modify the code and recompile. The place I saw testnet being referenced was here: 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
Activity: 43
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 23, 2011, 08:35:15 PM |
|
Oh that is beautiful. ![Grin](https://bitcointalk.org/Smileys/default/grin.gif) 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](https://bitcointalk.org/Smileys/default/rolleyes.gif) Thanks a lot.
|
|
|
|
coinage
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 60
Merit: 10
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 23, 2011, 08:45:53 PM |
|
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
Activity: 1708
Merit: 1010
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 23, 2011, 09:03:16 PM |
|
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
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 111
Merit: 10
CoinedBits.com
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 23, 2011, 09:07:08 PM |
|
I'm interested in hearing how this works. Let us know if you get it working and what you had to do.
|
|
|
|
zipxavier
Newbie
Offline
Activity: 28
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 23, 2011, 09:08:26 PM |
|
Yes if there was an easy guide I'd be interested.
|
|
|
|
MoonShadow
Legendary
Offline
Activity: 1708
Merit: 1010
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 23, 2011, 11:18:12 PM |
|
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
Activity: 12
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 24, 2011, 07:56:22 PM |
|
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?
|
|
|
|
|