Pages:
Author

Topic: How do you create an altcoin? - page 7. (Read 21864 times)

full member
Activity: 196
Merit: 100
April 14, 2013, 07:32:19 PM
I am playing with litecoin fork Smiley I have simple replaced some digits in hashGenesisBlock compiled and run, however when I start daemon it says main.cpp:2061: bool LoadBlockIndex(bool): Assertion `block.GetHash() == hashGenesisBlock' failed.

I think idea to beef up scrypt to make it cpu coin is fun Smiley
hero member
Activity: 631
Merit: 501
April 14, 2013, 07:31:20 PM
Have you guys taken a look at this proposal:

https://bitcointalksearch.org/topic/litecoiners-idea-to-make-litecoin-importance-skyrocket-in-bitcoin-ecosystem-176556

The proposal is for Litecoin, but since you guys have a new blockchain(s) in the works, someone might want to try their hand at implementing this as a new coin.

Interesting ideas.
Something to look at once we get comfortable with how this process works and the codes bases (bitcoin and litecoin)!
legendary
Activity: 1862
Merit: 1011
Reverse engineer from time to time
April 14, 2013, 07:28:11 PM
Have you guys taken a look at this proposal:

https://bitcointalksearch.org/topic/litecoiners-idea-to-make-litecoin-importance-skyrocket-in-bitcoin-ecosystem-176556

The proposal is for Litecoin, but since you guys have a new blockchain(s) in the works, someone might want to try their hand at implementing this as a new coin.
As we are newbies, you can't possible expect us to do something like that now, do you?
sr. member
Activity: 476
Merit: 250
Bytecoin: 8VofSsbQvTd8YwAcxiCcxrqZ9MnGPjaAQm
April 14, 2013, 07:14:18 PM
Have you guys taken a look at this proposal:

https://bitcointalksearch.org/topic/litecoiners-idea-to-make-litecoin-importance-skyrocket-in-bitcoin-ecosystem-176556

The proposal is for Litecoin, but since you guys have a new blockchain(s) in the works, someone might want to try their hand at implementing this as a new coin.
hero member
Activity: 631
Merit: 501
April 14, 2013, 06:49:18 PM
block.nTime = 1365952543
block.nNonce = 595298775
block.GetHash = 000000048842e8ee439543cd614a60189d81bc75ec7add37fd7cfa9e41054ccd
hashGenesisBlock = 000000017135cc76e65e8f292020ab2fc92e969e65c145ecf6e8510e5d7a31f5
block.hashMerkleRoot = 666c22e24d9395358ed9042332278eb35554ec53c0c1ca37cb1eb81799894ba2
bitcoind: main.cpp:1734: bool LoadBlockIndex(bool): Assertion `block.hashMerkleRoot == uint256(mapArgs["-block_hashMerkleRoot"].c_str())' failed.
Aborted (core dumped)


 Grin Grin Grin Grin Grin Grin Grin

Based on this post... I am supposed to add the following lines to the bitcoin.conf file:

block_hashMerkleRoot = 0x666c22e24d9395358ed9042332278eb35554ec53c0c1ca37cb1eb81
genesisblock = 0x000000017135cc76e65e8f292020ab2fc92e969e65c145ecf6e8510e5d7a31f
block_nTime = 1365952543
block_nNonce = 595298775


As you can see I just added 0x to the front of each number to signify this is a hex number.
Per the instructions, re-launch the compiled binary with these lines -- and wait.

Right now -- I am waiting.
I am curious to see what will happen once the process completes a second time.

sr. member
Activity: 323
Merit: 250
April 14, 2013, 05:12:03 PM
this is cool Smiley keep going!
hero member
Activity: 631
Merit: 501
April 14, 2013, 04:53:20 PM
This is exactly what is supposed to happen.
Continuing with the documentation and 'starting' of a test coin!
member
Activity: 98
Merit: 10
x1 7970 | Aprox. 587 kh/s
April 14, 2013, 02:29:37 PM
Here is a github discoverie from irc that may or may not help

Testing bitcoin with a new genesis block:
https://github.com/bitcoin/bitcoin/commit/98ba262a48b66cae8478525e809898512e997948


member
Activity: 98
Merit: 10
x1 7970 | Aprox. 587 kh/s
April 14, 2013, 02:00:44 PM
block.nTime = 1365952543
block.nNonce = 595298775
block.GetHash = 000000048842e8ee439543cd614a60189d81bc75ec7add37fd7cfa9e41054ccd
hashGenesisBlock = 000000017135cc76e65e8f292020ab2fc92e969e65c145ecf6e8510e5d7a31f5
block.hashMerkleRoot = 666c22e24d9395358ed9042332278eb35554ec53c0c1ca37cb1eb81799894ba2
bitcoind: main.cpp:1734: bool LoadBlockIndex(bool): Assertion `block.hashMerkleRoot == uint256(mapArgs["-block_hashMerkleRoot"].c_str())' failed.
Aborted (core dumped)


 Grin Grin Grin Grin Grin Grin Grin

Try with "-debug"?

I guess the bbqcoin founder had the same problem
https://bitcointalksearch.org/topic/bbqcoin-a-fork-which-need-help-for-start-himself-91362
member
Activity: 98
Merit: 10
x1 7970 | Aprox. 587 kh/s
April 14, 2013, 01:53:57 PM


Some programming comedy just for fun Cheesy
hero member
Activity: 631
Merit: 501
April 14, 2013, 01:47:21 PM
block.nTime = 1365952543
block.nNonce = 595298775
block.GetHash = 000000048842e8ee439543cd614a60189d81bc75ec7add37fd7cfa9e41054ccd
hashGenesisBlock = 000000017135cc76e65e8f292020ab2fc92e969e65c145ecf6e8510e5d7a31f5
block.hashMerkleRoot = 666c22e24d9395358ed9042332278eb35554ec53c0c1ca37cb1eb81799894ba2
bitcoind: main.cpp:1734: bool LoadBlockIndex(bool): Assertion `block.hashMerkleRoot == uint256(mapArgs["-block_hashMerkleRoot"].c_str())' failed.
Aborted (core dumped)


 Grin Grin Grin Grin Grin Grin Grin
hero member
Activity: 631
Merit: 501
April 14, 2013, 01:35:56 PM
Ok, so I cloned this archive and compiled the headless version:
https://github.com/sacarlson/MultiCoin


I then manually created the ./.bitcoin directory -- and placed this config file in there:
I copied this from the archive and made slight changes -- this is for testing purposes only:


bitcoin.conf

# this is an example config for freecoin that you would edit and run to create a new block chain to create new currencies.
# you will need to read the document create_new_genisis_block.txt for more details on the subject.
# this file is also the only other document to see some of the added control values I added to Freecoin.
rpcpassword=wmikrut
rpcuser=explorer
#paytxfee=.01
printtoconsole=1
testnet=1
#addnode=192.168.2.143
#connect=192.168.2.143
#connect=192.168.2.122
# listen port can now be set to other than 18333 for testnet proto.
port=18333

# for the values bellow testnet_config line to be used testnet_config=1 must be set
testnet_config=1

#AddressVersion is the 8 bit (char) 0 - 255 header code appended to the first 8 bits of the send address default is 0 for main 111 for testnet.
#AddressVerson=244

#check_block is a block to verify the integrity up to this block number used with check_hash if not set it's not checked
#check_block=15

#check_hash is the hash value of the check_block number used to verify integrity of block chain
#check_hash=0x0000000350d77f3989538ae423469c77263ab44b3cb3271c44e7af1f8cc2e7cd.


#to enable scripts uncomment nonstandard=1 here this overrides IsStandard() to return true
#nonstandard=1

# set MAX_MONEY block value that can be created by minners
# be very carefull not to change this after you have created a new coin or you could loss all the coins you have
# already minned in it.  be sure to backup you wallet.dat file to be safe.
max_money=420000000

#Subsidy value is what is paid when a new block is found when minning default is 50
Subsidy=50

#custom inflation active setting
custom_inflation=1

#inflation  block setting is the triger that block numbers grater than this that will change minning value
inflation_block=4

#post inflation block Subsidy value is the value given for minned blocks after crossing inflation_block
post_Subsidy=.01

#my new Pbtc pszTimestamp for 16/Apr/2011 as found on google seen on front page of New York Times paper
#pszTimestamp="The Times 16/Apr/2011 Tornadoes and vicious winds left 17 people dead across four states."
pszTimestamp="14/Apr/13 Noobs have finally gained control of new Alt-Coin Creation.".

#these values must be with value 0x to the front to make hex format
#pbtc new block.hashMerkleRoot value
block_hashMerkleRoot=0x184715d3660cbd3de94bcbb424b959bcf2dfc28ec1de429bda25b8b6be95a3fd

#pbtc new genesisblock value
genesisblock=0x000000017135cc76e65e8f292020ab2fc92e969e65c145ecf6e8510e5d7a31f5


#Pbtc new block.ntime  time epoc of creation use date +%s to use when you create new one
block_nTime=1365952543


#Pbtc new block.nNonce  start at zero when you are creating a new one
block_nNonce=0
#block_nNonce=1038592121

#pbtc irc IP address must be in XXX.XXX.XXX.XXX format number  or set -noirc on command line for no irc
#irc_ip=92.243.23.21:6667
#irc_ip=192.168.2.250:6667

#pbtc irc address used in Tor  can be a dns lookupable address pointing to your irc server
#irc_tor_address=irc.lfnet.org
#irc_tor_address=irc.surething.biz

#COINBASE_MATURITY defaults to 100 if changed here will credit minned coins in this number of new blocks.
# this feature is now disabled in this build until I figure out the changes made around it.
#coinbase_maturity=2

#to loop to generate the first block in a new chain set this to 1 ( to create your first proto coin type)
gennewblock=1




I then followed the instructions here:
https://github.com/sacarlson/MultiCoin/blob/master/create_new_genisis_block.txt

When I launched bitcoind program... here is what I see so far:

Bitcoin version 0.3.23-beta
Default data directory /root/.bitcoin
Bound to port 18333
Loading addresses...
dbenv.open strLogDir=/root/.bitcoin/testnet/database strErrorFile=/root/.bitcoin/testnet/db.log
Loaded 0 addresses
 addresses                96ms
Loading block index...
testnet mode active
hashGenesisBlock custom configured by -genesisblock in bitcoin.conf
hashGenesisBlock is now 000000017135cc76e65e8f292020ab2fc92e969e65c145ecf6e8510e5d7a31f5
creating new genesis block I hope
 pszTimestamp = >"14/Apr/13 Noobs have finally gained control of new Alt-Coin Creation."<
block.nTime custom configured by -block_nTime in bitcoin.conf
block.nNonce custom configured by -block_nNonce in bitcoin.conf
block.nTime = 1365952543
block.nBits = 487063544
block.nBits hex = 1d07fff8
block.nNonce = 0


I looks like it's trying to generate the genesis block!!


Now... I have to mention this is for a SHA256 derivative... and not scrypt.
Will this method work with a scrypt based branch?  Unknown at the moment.

Right now I am just trying to create 'any' genesis block and work outfrom there.
More soon!!
member
Activity: 98
Merit: 10
x1 7970 | Aprox. 587 kh/s
April 14, 2013, 01:25:27 PM
No... I was making fun of myself for misspelling genesis block as "Genesis Bock"

Oh lol Cheesy
hero member
Activity: 631
Merit: 501
April 14, 2013, 01:16:02 PM
No... I was making fun of myself for misspelling genesis block as "Genesis Bock"
member
Activity: 98
Merit: 10
x1 7970 | Aprox. 587 kh/s
April 14, 2013, 01:13:33 PM
Not quite there yet.  I've been following some instructions and i am having a slight complication.  When i get back to the dev machine I'll post what I've done so far.
But you have a working root and genesis block?
hero member
Activity: 631
Merit: 501
April 14, 2013, 01:06:47 PM
Not quite there yet.  I've been following some instructions and i am having a slight complication.  When i get back to the dev machine I'll post what I've done so far.
member
Activity: 98
Merit: 10
x1 7970 | Aprox. 587 kh/s
April 14, 2013, 12:56:46 PM
wth... what is a genesis bock???
I meant block  Cool
So you are mining it now?
member
Activity: 98
Merit: 10
It's the muffins that must be stopped.
April 14, 2013, 12:45:13 PM
wth... what is a genesis bock???

root beerCheesy
hero member
Activity: 631
Merit: 501
April 14, 2013, 12:05:19 PM
wth... what is a genesis bock???
I meant block  Cool
member
Activity: 98
Merit: 10
x1 7970 | Aprox. 587 kh/s
April 14, 2013, 11:53:09 AM
Still working on creating the actual genesis bock.  Marching on.....   ;Dt

Keep pushing! Cheesy
Pages:
Jump to: