Bitcoin Forum
October 22, 2017, 03:03:02 AM *
News: Latest stable version of Bitcoin Core: 0.15.0.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: « 1 2 3 [4] 5 6 7 8 9 10 11 12 13 14 15 »  All
  Print  
Author Topic: How do you create an altcoin?  (Read 21187 times)
Blindfolded
Full Member
***
Offline Offline

Activity: 156



View Profile
April 13, 2013, 10:47:00 PM
 #61

Ok, should I just change some numbers and letters in this line?

Code:
32   uint256 hashGenesisBlock("0x12a765e31ffd4059bada1e25190f6e98c99d9714d334efa41a195a7e7e04bfe2");
No!!!. The genesis block process is not as simple as that. You ACTUALLY need to mine it as a regular block. It's also a process that I don't understand. This is probably the thing that will slow you down the most.

What if you start a solo server and you configure your miner to mine at this server? Like if you solo mine Bitcoin or Litecoin, but now you're solo mining Noobcoin.

Noobcoin.... awesome!
1508641382
Hero Member
*
Offline Offline

Posts: 1508641382

View Profile Personal Message (Offline)

Ignore
1508641382
Reply with quote  #2

1508641382
Report to moderator
1508641382
Hero Member
*
Offline Offline

Posts: 1508641382

View Profile Personal Message (Offline)

Ignore
1508641382
Reply with quote  #2

1508641382
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1508641382
Hero Member
*
Offline Offline

Posts: 1508641382

View Profile Personal Message (Offline)

Ignore
1508641382
Reply with quote  #2

1508641382
Report to moderator
Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1554

Reverse engineer from time to time


View Profile
April 13, 2013, 10:47:50 PM
 #62

The genesis block is created from this piece of code

Quote
       const char* pszTimestamp = "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks" //<- change this to something else;
        CTransaction txNew;
        txNew.vin.resize(1);
        txNew.vout.resize(1);
        txNew.vin[0].scriptSig = CScript() << 486604799 << CBigNum(4) << vector<unsigned char>((const unsigned char*)pszTimestamp, (const unsigned char*)pszTimestamp + strlen(pszTimestamp));
        txNew.vout[0].nValue = 50 * COIN //your premine basically;
        txNew.vout[0].scriptPubKey = CScript() << ParseHex("<public key from an ECDSA keypair>") << OP_CHECKSIG;
        CBlock block;
        block.vtx.push_back(txNew);
        block.hashPrevBlock = 0;
        block.hashMerkleRoot = block.BuildMerkleTree();

Now you mine that.

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
Brunic
Hero Member
*****
Offline Offline

Activity: 633



View Profile
April 13, 2013, 10:48:56 PM
 #63

Ok, should I just change some numbers and letters in this line?

Code:
32   uint256 hashGenesisBlock("0x12a765e31ffd4059bada1e25190f6e98c99d9714d334efa41a195a7e7e04bfe2");
No!!!. The genesis block process is not as simple as that. You ACTUALLY need to mine it as a regular block. It's also a process that I don't understand. This is probably the thing that will slow you down the most.

Well if i start mining this genesis block am i not just mining litecoins?

Litecoin is simply a blockchain, like Bitcoin is another blockchain. I guess that changing the hash shouldn't be that problematic. As long as you have your own blockchain, you cannot merge on another one.
pixel
Member
**
Offline Offline

Activity: 98


x1 7970 | Aprox. 587 kh/s


View Profile
April 13, 2013, 10:49:01 PM
 #64

So what exactly should I be doing now?  Huh

I guidance through this

Currently Mining: Litecoin, Xencoin, and Worldcoin (Just because its fun!, don't yell at me ;_;)
wmikrut
Hero Member
*****
Offline Offline

Activity: 610



View Profile WWW
April 13, 2013, 10:49:31 PM
 #65

The genesis block is created from this piece of code

Quote
       const char* pszTimestamp = "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks" <- change this to something else;
        CTransaction txNew;
        txNew.vin.resize(1);
        txNew.vout.resize(1);
        txNew.vin[0].scriptSig = CScript() << 486604799 << CBigNum(4) << vector<unsigned char>((const unsigned char*)pszTimestamp, (const unsigned char*)pszTimestamp + strlen(pszTimestamp));
        txNew.vout[0].nValue = 50 * COIN;
        txNew.vout[0].scriptPubKey = CScript() << ParseHex("<public key from an ECDSA keypair>") << OP_CHECKSIG;
        CBlock block;
        block.vtx.push_back(txNew);
        block.hashPrevBlock = 0;
        block.hashMerkleRoot = block.BuildMerkleTree();

Now you mine that.


Yes... I read it's common practice (as it were) to put the headline from the current newspaper in the genesis block code.

I will NEVER ask for any kind of funds up front in a buy/sale of anything on bitcointalk.

BM-2cTFihJKmSwusMAoYuUHPvpx56Jozv64KK
Brunic
Hero Member
*****
Offline Offline

Activity: 633



View Profile
April 13, 2013, 10:50:04 PM
 #66

The genesis block is created from this piece of code

Quote
       const char* pszTimestamp = "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks" //<- change this to something else;
        CTransaction txNew;
        txNew.vin.resize(1);
        txNew.vout.resize(1);
        txNew.vin[0].scriptSig = CScript() << 486604799 << CBigNum(4) << vector<unsigned char>((const unsigned char*)pszTimestamp, (const unsigned char*)pszTimestamp + strlen(pszTimestamp));
        txNew.vout[0].nValue = 50 * COIN //your premine basically;
        txNew.vout[0].scriptPubKey = CScript() << ParseHex("<public key from an ECDSA keypair>") << OP_CHECKSIG;
        CBlock block;
        block.vtx.push_back(txNew);
        block.hashPrevBlock = 0;
        block.hashMerkleRoot = block.BuildMerkleTree();

Now you mine that.

Where is it? Which file, which line?
Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1554

Reverse engineer from time to time


View Profile
April 13, 2013, 10:50:12 PM
 #67



Yes... I read it's common practice (as it were) to put the headline from the current newspaper in the genesis block code.

Not necessarily, for instance Litecoin used Steve Jobs's death. If it was me, I'd have chosen Cypress's bailout. It would've been the equivalent to satoshi's message and would've guaranteed you success Cheesy

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
Brunic
Hero Member
*****
Offline Offline

Activity: 633



View Profile
April 13, 2013, 10:52:30 PM
 #68

So what exactly should I be doing now?  Huh

Help us look for the damn Start blockchain button  Grin

But what if you compile your code, start it with the -server function and try to mine it?
Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1554

Reverse engineer from time to time


View Profile
April 13, 2013, 10:53:45 PM
 #69

So what exactly should I be doing now?  Huh

Help us look for the damn Start blockchain button  Grin

But what if you compile your code, start it with the -server function and try to mine it?
I don't think it can work like that, since the client assumes that a genesis block already exists. Since it doesn't in your case, you need a custom miner.

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
pixel
Member
**
Offline Offline

Activity: 98


x1 7970 | Aprox. 587 kh/s


View Profile
April 13, 2013, 10:54:35 PM
 #70

I can use guiminer-scrypt

Currently Mining: Litecoin, Xencoin, and Worldcoin (Just because its fun!, don't yell at me ;_;)
Blindfolded
Full Member
***
Offline Offline

Activity: 156



View Profile
April 13, 2013, 10:54:48 PM
 #71

So what exactly should I be doing now?  Huh

Help us look for the damn Start blockchain button  Grin

But what if you compile your code, start it with the -server function and try to mine it?


Who wants to buy some noobcoins now!
Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1554

Reverse engineer from time to time


View Profile
April 13, 2013, 10:56:14 PM
 #72

Well you guys are in luck though, I was provided with this piece of code that does what you want, although it's in python AND CPU-based, so it will take some time.

https://github.com/freicoin/freicoin/blob/master/share/find_genesis_block.py of course you still need a valid merkle root, as the one there is just an example.

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
wmikrut
Hero Member
*****
Offline Offline

Activity: 610



View Profile WWW
April 13, 2013, 10:57:39 PM
 #73

Well you guys are in luck though, I was provided with this piece of code that does what you want, although it's in python AND CPU-based, so it will take some time.

https://github.com/freicoin/freicoin/blob/master/share/find_genesis_block.py of course you still need a valid merkle root.

+1 
Nice!!  Grin

I will NEVER ask for any kind of funds up front in a buy/sale of anything on bitcointalk.

BM-2cTFihJKmSwusMAoYuUHPvpx56Jozv64KK
pixel
Member
**
Offline Offline

Activity: 98


x1 7970 | Aprox. 587 kh/s


View Profile
April 13, 2013, 11:00:08 PM
 #74

So what exactly should I be doing now?  Huh

Help us look for the damn Start blockchain button  Grin

But what if you compile your code, start it with the -server function and try to mine it?


Who wants to buy some noobcoins now!

Lets not get ahead of ourselves, We don't even have most of the variables set

Currently Mining: Litecoin, Xencoin, and Worldcoin (Just because its fun!, don't yell at me ;_;)
pixel
Member
**
Offline Offline

Activity: 98


x1 7970 | Aprox. 587 kh/s


View Profile
April 13, 2013, 11:01:07 PM
 #75

Well you guys are in luck though, I was provided with this piece of code that does what you want, although it's in python AND CPU-based, so it will take some time.

https://github.com/freicoin/freicoin/blob/master/share/find_genesis_block.py of course you still need a valid merkle root.

+1  
Nice!!  Grin
Does it work with scrypt?

ƞoobcoin is a good name though Cheesy

On the road to 50ƞ

Currently Mining: Litecoin, Xencoin, and Worldcoin (Just because its fun!, don't yell at me ;_;)
wmikrut
Hero Member
*****
Offline Offline

Activity: 610



View Profile WWW
April 13, 2013, 11:10:20 PM
 #76

Well you guys are in luck though, I was provided with this piece of code that does what you want, although it's in python AND CPU-based, so it will take some time.

https://github.com/freicoin/freicoin/blob/master/share/find_genesis_block.py of course you still need a valid merkle root.

+1  
Nice!!  Grin
Does it work with scrypt?

ƞoobcoin is a good name though Cheesy

On the road to 50ƞ

Lol.. noobcoin... "new B coin"... whatever.
It's a fun exercise!

I will NEVER ask for any kind of funds up front in a buy/sale of anything on bitcointalk.

BM-2cTFihJKmSwusMAoYuUHPvpx56Jozv64KK
pixel
Member
**
Offline Offline

Activity: 98


x1 7970 | Aprox. 587 kh/s


View Profile
April 13, 2013, 11:11:03 PM
 #77

Im still a little confused, What should I be doing right now? lol  Grin Huh

Currently Mining: Litecoin, Xencoin, and Worldcoin (Just because its fun!, don't yell at me ;_;)
wmikrut
Hero Member
*****
Offline Offline

Activity: 610



View Profile WWW
April 13, 2013, 11:14:02 PM
 #78

Im still a little confused, What should I be doing right now? lol  Grin Huh

Hmm... a checklist would be in order....

Update the settings on main.h/.cpp
Update the code for the genesis block
Use Remember remember the 5th of November's Find Genesis Block

Fuzzy here:
Put hash of genesis block in settings.
Compile new coin code.
Launch client w/ -server
Mine?

I will NEVER ask for any kind of funds up front in a buy/sale of anything on bitcointalk.

BM-2cTFihJKmSwusMAoYuUHPvpx56Jozv64KK
pixel
Member
**
Offline Offline

Activity: 98


x1 7970 | Aprox. 587 kh/s


View Profile
April 13, 2013, 11:16:07 PM
 #79

Im still a little confused, What should I be doing right now? lol  Grin Huh

Hmm... a checklist would be in order....

Update the settings on main.h/.cpp
Update the code for the genesis block
Use Remember remember the 5th of November's Find Genesis Block

Fuzzy here:
Put hash of genesis block in settings.
Compile new coin code.
Launch client w/ -server
Mine?

Ah good,

Im updating the settings in the main files now. So far I have changed the max number of coins.

Code:
static const int64 MAX_MONEY = 25000000 * COIN; // N00bcoin: maximum of 25 million coins (sound familiar?)

Currently Mining: Litecoin, Xencoin, and Worldcoin (Just because its fun!, don't yell at me ;_;)
pixel
Member
**
Offline Offline

Activity: 98


x1 7970 | Aprox. 587 kh/s


View Profile
April 13, 2013, 11:18:47 PM
 #80

It would be cool to get some altcoin devs in here, were are all of them? :3

Currently Mining: Litecoin, Xencoin, and Worldcoin (Just because its fun!, don't yell at me ;_;)
Pages: « 1 2 3 [4] 5 6 7 8 9 10 11 12 13 14 15 »  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!