Title: Starting a new Test Chain Post by: bytemaster on May 28, 2011, 03:17:18 AM I would like to experiment with a new block chain other than the test network.
It looks like the genesis block is "hard coded" with a specific "private key" and other numbers. What I am looking for is a how-to setup a new block chain with a different genesis block. Title: Re: Starting a new Test Chain Post by: Anonymous on May 28, 2011, 03:40:47 AM http://forum.bitcoin.org/?topic=4483.0
testnet in a box Title: Re: Starting a new Test Chain Post by: bytemaster on May 28, 2011, 03:46:42 AM That test net in a box does does not allow me to modify the genesis block to change the rules from the beginning. But it does look like the config is helpful once I get clients starting with a custom genesis block.
Title: Re: Starting a new Test Chain Post by: Anonymous on May 28, 2011, 05:08:01 AM Or you could just leave the genesis block with satoshi's key as the owner with your own set of rules....
Title: Re: Starting a new Test Chain Post by: bytemaster on May 28, 2011, 05:18:06 AM My real design requirements are:
1) I own genesis block 2) Genesis block issues 1000 Million coins divisible to .00001 to me. 3) No coin generation 4) 50% of all fees go to genesis block owner (me) 5) 50% of all fees go to the block generator Yes there is a real use for this set of rules. I just need to configure a client with these rules and start the chain. Title: , Post by: wumpus on May 28, 2011, 07:30:23 AM Indeed, you'll have to hack the client to be able to do that. The rules are not represented in the genesis block but in the client code.
You can change the divisibility with the constant "COIN" in main.h. "MAX_MONEY" will probably also be interesting to you. Note that coin amounts have to fit in signed 64 bit integers for the current implementation. Also make sure that your network is not accepting packets from the current testnet or main chain by changing the identification bytes. See also http://forum.bitcoin.org/index.php?topic=3051.0 and the other topics about the new testnet. Title: Re: Starting a new Test Chain Post by: bytemaster on May 28, 2011, 12:12:33 PM Changing the coin values and generation rules are easy.
It is the genesis block + fee distribution that is non-obvious. Title: Re: Starting a new Test Chain Post by: koin on May 28, 2011, 12:38:28 PM Yes there is a real use for this set of rules. /me grabs some popcorn.Title: Re: Starting a new Test Chain Post by: bytemaster on May 28, 2011, 02:06:20 PM Yes there is a real use for this set of rules. /me grabs some popcorn.LOL, trust me it will be a good show. Title: Re: Starting a new Test Chain Post by: doublec on May 28, 2011, 02:32:17 PM Changing the coin values and generation rules are easy. It is the genesis block + fee distribution that is non-obvious. Instructions are available from the freecoin repository: https://github.com/sacarlson/freecoin/blob/master/create_new_genisis_block.txt Title: Re: Starting a new Test Chain Post by: bytemaster on May 28, 2011, 06:47:48 PM Thanks!
Title: Re: Starting a new Test Chain Post by: cdnbcguy on July 31, 2011, 07:22:31 PM Changing the coin values and generation rules are easy. It is the genesis block + fee distribution that is non-obvious. Instructions are available from the freecoin repository: https://github.com/sacarlson/freecoin/blob/master/create_new_genisis_block.txt it's not there, but it is here https://github.com/dyne/Freecoin/blob/master/create_new_genisis_block.txt |