Pages:
Author

Topic: [ANN] Genesis Block Generator - page 2. (Read 30836 times)

full member
Activity: 165
Merit: 100
January 21, 2014, 02:42:29 AM
#26
Remember -

In this thread (https://bitcointalksearch.org/topic/the-genesis-block-187888) you mentioned to Alex figuring out how to do this for Scrypt based hashes.  Did you ever post that code?

Like Alex, I'm just fooling around, but would like to make a "CPU Only" coin, perhaps modifying the litecoin fork to require even more memory per thread (512mb per thread???).

Anyhow, would love to grab your Scrypted based code if you have it available.  Did get your SHA256 one running.

Thanks,

Cassey

If you are looking to make "CPU only" coins, seriously, this thread is not the right place. Btw, when you are able to change the hashing, generating genesis block will not be a problem. Cheesy
sr. member
Activity: 470
Merit: 250
Better to have 100 friends than 100 rubles
January 20, 2014, 11:58:09 PM
#25
Remember -

In this thread (https://bitcointalksearch.org/topic/the-genesis-block-187888) you mentioned to Alex figuring out how to do this for Scrypt based hashes.  Did you ever post that code?

Like Alex, I'm just fooling around, but would like to make a "CPU Only" coin, perhaps modifying the litecoin fork to require even more memory per thread (512mb per thread???).

Anyhow, would love to grab your Scrypted based code if you have it available.  Did get your SHA256 one running.

Thanks,

Cassey
newbie
Activity: 24
Merit: 0
January 01, 2014, 10:03:45 AM
#24
Perfect!
But I can't open your link of code.
Please put your code on github.
Thanks!
sr. member
Activity: 629
Merit: 252
December 11, 2013, 04:34:27 PM
#23
I've tried, and I got a 9 digit nonce, and bitcoind is unable to validate and ERRORs on boot and looks like an invalid genesis block in the .dat

any thoughts?
legendary
Activity: 1862
Merit: 1011
Reverse engineer from time to time
December 10, 2013, 04:13:39 PM
#22
If you want to get the exact same genesis block as Bitcoin, you might as well just set the nonce as well, no point in waiting minutes.
full member
Activity: 165
Merit: 100
December 10, 2013, 05:23:09 AM
#21
From:

Code:
uint32_t startNonce = 0;
uint32_t unixtime = 0;

to:

Code:
uint32_t startNonce = 0;
uint32_t unixtime = 1231006505;

?

Thanks.

Ok. Got it! Thanks.
legendary
Activity: 1862
Merit: 1011
Reverse engineer from time to time
December 10, 2013, 05:17:25 AM
#20
hi,

I downloaded(link in 1st post) & compiled under windows(mingw) & try to get the genesis block. Unable to get:

Quote
Hash: 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
Nonce: 2083236893
Unix time: 1231006505

Please advise. Thanks.

You need to preset the UNIX time variable and nonce to match the ones there, otherwise it will find a different one.
full member
Activity: 165
Merit: 100
December 10, 2013, 05:13:44 AM
#19
hi,

I downloaded(link in 1st post) & compiled under windows(mingw) & try to get the genesis block. Unable to get:

Quote
Hash: 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
Nonce: 2083236893
Unix time: 1231006505

Please advise. Thanks.
sr. member
Activity: 280
Merit: 250
TECHNOLOGY, BABY!
November 01, 2013, 08:39:57 PM
#18
Subbed
legendary
Activity: 1862
Merit: 1011
Reverse engineer from time to time
November 01, 2013, 07:15:58 PM
#17
Bumping this thread for anyone that might want to make MORE sha256 alt coins.
member
Activity: 88
Merit: 12
Max Kaye
June 19, 2013, 02:05:20 AM
#16
Little help please:

Code:
root@vps:~/0pticoin/src# gcc -o genesis_generator genesis_generator.c
/tmp/cchWzm3E.o: In function `main':
genesis_generator.c:(.text+0x95e): undefined reference to `SHA256'
genesis_generator.c:(.text+0x979): undefined reference to `SHA256'
genesis_generator.c:(.text+0xb73): undefined reference to `SHA256'
genesis_generator.c:(.text+0xb8e): undefined reference to `SHA256'
collect2: ld returned 1 exit status

Thanks!!!

For future reference, you need to include the libraries in the command:

Code:
gcc genesis_generator.c -o genesis_generator -lcrypto
sr. member
Activity: 397
Merit: 251
CureCoin Lead Dev
May 05, 2013, 05:04:31 PM
#15
nice job. Ill need to add a hard drive to my pc to store all the new block chains that will be coming out  Grin
hero member
Activity: 714
Merit: 500
Crypti Community Manager
May 05, 2013, 04:52:07 PM
#14
How can I determine the first block as a checkpoint if I can't mine? Or can I mine without checkpoints?
sr. member
Activity: 294
Merit: 250
May 05, 2013, 04:39:14 PM
#13
Little help please:

Code:
root@vps:~/0pticoin/src# gcc -o genesis_generator genesis_generator.c
/tmp/cchWzm3E.o: In function `main':
genesis_generator.c:(.text+0x95e): undefined reference to `SHA256'
genesis_generator.c:(.text+0x979): undefined reference to `SHA256'
genesis_generator.c:(.text+0xb73): undefined reference to `SHA256'
genesis_generator.c:(.text+0xb8e): undefined reference to `SHA256'
collect2: ld returned 1 exit status

Thanks!!!
member
Activity: 70
Merit: 10
April 27, 2013, 03:13:41 AM
#12
OK got it. Nice, with these as initial value the genesis block come out immediately:

Quote
$ gg1 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3
f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f "The Times 03/Jan/200
9 Chancellor on brink of second bailout for banks" 486604799

Coinbase: 04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63
656c6c6f72206f6e206272696e6b206f66207365636f6e64206261696c6f757420666f722062616 e
6b73

PubkeyScript: 4104678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61de
b649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5fac

Merkle Hash: 3ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a
Byteswapped: 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b
Generating block...

Block found!
Hash: 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
Nonce: 2083236893
Unix time: 1231006505

Nice program!
legendary
Activity: 1862
Merit: 1011
Reverse engineer from time to time
April 27, 2013, 02:46:26 AM
#11
I tried your program with bitcoin's parameters:

Quote
$ gg 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f
4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f "The Times 03/Jan/2009
 Chancellor on brink of second bailout for banks" 486604799
...

Why I don't get the same genesis hash as in the bitcoin program?

Quote
uint256 hashGenesisBlock("0x000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f");

It looks like you've got a linebreak/space in the first argument.  I noticed this in OP's post too, if I double click the first argument it stops highlighting halfway through.  If I drag-select the whole thing and paste it somewhere, there's a space.  So, make sure you don't have any space between "bc3f" and "4cef".
It's because the nonce and unixtime are different.

For bitcoin, it's unixtime = 1231006505 and nonce = 2083236893

I will have to rework the program a bit and start working with switches for better control and/or parsing the data from a file.
member
Activity: 70
Merit: 10
April 27, 2013, 02:42:06 AM
#10
I retried, still the same, no space or line-break in between... it's weird why it is not match.
sr. member
Activity: 448
Merit: 252
April 26, 2013, 11:54:54 PM
#9
I tried your program with bitcoin's parameters:

Quote
$ gg 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f
4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f "The Times 03/Jan/2009
 Chancellor on brink of second bailout for banks" 486604799
...

Why I don't get the same genesis hash as in the bitcoin program?

Quote
uint256 hashGenesisBlock("0x000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f");

It looks like you've got a linebreak/space in the first argument.  I noticed this in OP's post too, if I double click the first argument it stops highlighting halfway through.  If I drag-select the whole thing and paste it somewhere, there's a space.  So, make sure you don't have any space between "bc3f" and "4cef".
member
Activity: 70
Merit: 10
April 26, 2013, 10:30:10 PM
#8
I tried your program with bitcoin's parameters:

Quote
$ gg 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f
4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f "The Times 03/Jan/2009
 Chancellor on brink of second bailout for banks" 486604799

Coinbase: 04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63
656c6c6f72206f6e206272696e6b206f66207365636f6e64206261696c6f757420666f722062616 e
6b73

PubkeyScript: 4104678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61de
b649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5fac

Merkle Hash: 3ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a
Byteswapped: 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b
Generating block...
1054499 Hashes/s, Nonce 1279737097
Block found!
Hash: 000000000be5c9479ccf0a6a74134940650ca3690488d6a3604ea029b429f778
Nonce: 1279991239
Unix time: 1367026916

Why I don't get the same genesis hash as in the bitcoin program?

Quote
uint256 hashGenesisBlock("0x000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f");

Do I look at the wrong place?
legendary
Activity: 1862
Merit: 1011
Reverse engineer from time to time
April 22, 2013, 04:54:33 AM
#7
I have updated the code with block hashing to find a genesis block. If you need to specify custom nonce and unixtime(to re-create a block from some chain), you will have to edit the source.

http://pastebin.com/nhuuV7y9
Pages:
Jump to: