Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: TheAltcoinKing on November 12, 2014, 03:31:07 PM



Title: How to Clone An Altcoin- Scrypt Coin Edition-Includes Largest Windows Guide Ever
Post by: TheAltcoinKing on November 12, 2014, 03:31:07 PM
Cloning your own altcoin client can be tricky. This guide is the most up to date reference tool to clone Scrypt coins. The guide is written specifically to clone Litecoin from the current Github repository for Windows users. It includes setting up seed nodes, premines, checkpoints, Github for Windows and few extras not found in other guides.

If you have a Windows machine you can follow this guide to make your own altcoin. I will be adding in the near future clone guide for x11, x13, POW/POS etc. As a clean point of reference each guide will be written specifically for each algo. Linux, MAC and 64bit versions will come though it would be faster to find someone willing to take these originals and edit them over.

If someone is selling you an ICO, you can get all that here for free.

The first full guide is available now at https://howtocloneanaltcoin.com/index.php?topic=8.0. Question will be answered quicker over on these forums instead of this thread.

I have divided the guide into easy to reference sections.

1. Pre Installers.
  • 1a. Winrar
    1b. Compression
    1c. MinGW
2. Windows Deps.
  • 2a. OpenSSL
    2b.Berkeley DB
    2c. Boost
    2d. MiniUPNP
    2e. Protoc and Libprotobuf
    2f. Libpng
    2g. qrencode
3. Download and Compile QT.
4. The Clone
  • 4a. Source Code
    4b. Copy and Replace Litecoin
    4c. Copy and Replace LTC
    4d. Change rpc and port numbers.
    4e. Change starting letter for addresses.
    4f. Update client version number.
    4g. Change Litecoin example addresses to Clonecoin Addresses.
    4h. Change char pchMessageStart and ParseHex.
    4i. Change alert keys.
    4j. Remove Merkel root and Genesis Block.
    4k. Remove Nonce and testnet genesis.
    4l. Add Epoochtime and Timestamp.
    4m. Fixing the checkpoints.
    4n. Change max money supply and coinbase maturity.
    4o. Change block times from 2.5 minutes to 30 seconds.
    4p. Change re-targeting
    4q. Add premine and change block rewards.
    4r. Update Images.
    4s. Update Seed node/ AWS Seed node guide.
5. Hashing the Genesis Block and Merkel Root.
  • 5a. Ability to hash Genesis Block.
    5b. Compiling Clonecoin Windows QT.
    5c. Generating Merkel Root
    5d. Hashing the Genesis Block.
6. Connecting your nodes.
  • 6a. Create a conf.
    6b. Connect- server and home network.
7. Checkpointing the premine.
8. Clean up You Code.
9. Compiling Clonecoind.
  • 9a. Compile Clonecoind.
    9b. Remove and cleanup.
10. Github for release, made easy.
  • 10a. Easy Pushing Commits/Launch code.
    10b. Easy Revert Commits
    10c. Easy Pushing Updates.
11. Common Errors
12. Quick Logos
13. The Website.
  • 13a. The Template.
    13b. Upload to a website.
14. The Launch. Ninja vs Pumped vs ICO.
  • 14a. Prelaunch
    14b. The Ninja
    14c. The Pumped.
    14d. The ICO.


Title: Re: How to Clone An Altcoin- Scrypt Coin Edition-Includes Largest Windows Guide Ever
Post by: dejanr on November 15, 2014, 08:52:17 AM
Do you have a modification for bitcoin Genesis generation script for 0.9.3 version?

Thanks


Title: Re: How to Clone An Altcoin- Scrypt Coin Edition-Includes Largest Windows Guide Ever
Post by: TheAltcoinKing on November 18, 2014, 03:51:11 PM
You need to add the following. (Source (https://howtocloneanaltcoin.com/index.php?topic=9.0))

Code:
if (IsCalculatingGenesisBlockHash && (block.GetHash() != hashGenesisBlock)) {
block.nNonce = 0;

            // This will figure out a valid hash and Nonce if you're
            // creating a different genesis block:
            uint256 hashTarget = CBigNum().SetCompact(block.nBits).getuint256();
            while (block.GetHash() > hashTarget)
            {
                ++block.nNonce;
                if (block.nNonce == 0)
                {
                    printf("NONCE WRAPPED, incrementing time");
                    ++block.nTime;
                }
if (block.nNonce % 10000 == 0)
{
printf("nonce %08u: hash = %s \n", block.nNonce, block.GetHash().ToString().c_str());
}
            }
        }


Title: Re: How to Clone An Altcoin- Scrypt Coin Edition-Includes Largest Windows Guide Ever
Post by: gnomethrower on January 06, 2015, 10:30:15 PM
How do I turn pszTimestamp into a public key so I can generate a genesis block with it?

I've tried almost every obvious idea that I can...


Title: Re: How to Clone An Altcoin- Scrypt Coin Edition-Includes Largest Windows Guide Ever
Post by: celebreze32 on January 06, 2015, 11:02:57 PM
It's a good guide but the forum is filling up with "buy cheap ugg boots" spam. Delete it before your forum gets overwhelmed with it.


Title: Re: How to Clone An Altcoin- Scrypt Coin Edition-Includes Largest Windows Guide Ever
Post by: bhokor on March 03, 2015, 03:19:05 PM
thanks for the guide, do we have some more updated guide for Pos coins?

thanks


Title: Re: How to Clone An Altcoin- Scrypt Coin Edition-Includes Largest Windows Guide Ever
Post by: tokeweed on March 03, 2015, 04:02:50 PM
Cool!  Encouraging more people to become just like this.  https://www.youtube.com/watch?v=cIasr2AiyZ0