updated litecoin mining guide

Best Mining Rig Hardware To Mine With 2017 | | Ethereum, General, Mining Hardware, Mining Rig, Monero, PascalCoin, ZCash |_ Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top up vote 0 down vote favorite I need a Detailed guide on how to Create a Litecoin Fork, With Pre-mine instructions, I would be very grateful if someone posted a comprehensive guide on how to Create a Litecoin software fork, with a Pre-mine.litecoin altcoin forks closed as too broad by Mikko Ohtamaa, Dennis Kriechel, Mathias711, Nick ODell, Jozef Knaperek Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer.Avoid asking multiple distinct questions at once.See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.up vote 1 down vote Off the top of my head: You need a new genesis block.
You need a different address byte (e.g.You need to change the default port and rpc port.You need a way for clients to find one another.You can run a DNS seed.You need to change the "backup client list" which is a bunch of 32 bit integers which represent IP addresses.You need somebody to mine initially, because otherwise transactions won't confirm.You need to alter the default datadir directory.You need to change the magic number in the protocol header, otherwise your client might connect to the Litecoin network by accident, wasting bandwidth.You need to change the alert keys, otherwise the Litecoin devs can send alerts onto your network.Add a transaction to the UTXDB which is your premine transaction That's all I can think of, though obviously you'd want to change GUI elements to the actual name of your currency.Browse other questions tagged litecoin altcoin forks or ask your own question.Download and install Winrar or an alternate file compression tool./download.htm Download and install a text editor such as Sublime Text.
You need a text editor that can easily search and replace case sensitive text.Double click to install, keep the checkbox for the GUI checked and make sure to install in C:\MinGW.From the MinGW GUI interface, go to all packages -> MYSYS Right click on the following installations and mark for installation.Click on Installation -> Apply changes.MinGW will now download the remaining packages.Make sure to remove any previous installs of MinGW before starting.Once complete, navigate to C:\MinGW\bin and you should only have a mingw-get application.If you have msys-gcc and msys-w32api you need to delete MinGW and check the correct install packages are selected above.Download and extract mingw32 to C:\mingw32, http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.9.1/theads-posix/dwarf/i686-4.9.1-release-posix-dwarf-rt_v3-rev1.7z/download You now need to change the path variables.Go to control panel->system and security->system.
Click on advanced system properties->environmental variables.In the top box navigate to PATH and change to To start the MingW app navigate to C:\MinGW\msys\1.0\msys.bat, create a desktop shortcut as you will use the msys command as well as the windows command prompts.bitcoin daily tickerDouble click to start and enter the following to display the version and correct paths.bitcoin r3Your msys output should look like the following code.asic bitcoin ukIf you are having issues I have uploaded a MinGW install here Create a deps folder at C:\deps.bitcoin-qt user guideIf you want to cheat you can download the pre-built dependencies here, though it is recommended to build your own.bitcoin mining turkey
Install OpenSSL dependencies on Windows./source/openssl-1.0.1j.tar.gz to your deps folder.kurs bitcoin androidOpen the MinGW shell at C:\MinGW\msys\1.0\msys.bat /berkeley-db/db-4.8.30.NC.tar.gz and place in your deps folder.bitcoin mining 2 psuIn the MinGW shell use the following code.bitcoin map amsterdamDownload Boost to your deps folder.bitcoin poker with faucethttp://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.zip/download Make sure to download either the 7z or zip versions.Double click on the folder to extract boost_1_55_0 in your deps folder.This may take several minutes depending on your PC’s speed.Using the Windows command prompt, bootstrap and compile boost.
To bring up the windows command prompt just type cmd in the windows search bar.Download and extract MiniUPNP http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.9.20140911.tar.gz to your deps folder.Rename folder from miniupnpc-1.9.20140911 to miniupnpc then from a Windows command prompt: /files/protobuf-2.5.0.zip to your deps folder.In the msys shell run Download and extract http://prdownloads.sourceforge.net/libpng/libpng-1.6.14.tar.gz?download to your deps folder./works/qrencode/qrencode-3.4.4.tar.gz to your deps folder.Once again check it resides in C:\Qt\4.8.6 not C:\Qt\4.8.6\4.8.6.Due to a bug in 4.8.6 you will need to apply the patch available here.For those who can’t find or work it out, you need to change the following lines in C:\Qt\4.8.6\tools\configure\configureapp.cpp or download the patched file here and replace it in C:\Qt\4.8.6\tools\configure\configureapp.cpp From your Windows command prompt run Now we are ready to start the cloning process.
If you are worried about compilation, it would be wise to jump ahead and ensure everything is working with compiling the client before working with the clone.In this guide we will be cloning Litecoin.Litecoin is a Scrypt based coin and the original altcoin.I will be calling this coin “Clonecoin” (CLN).In this guide I will be placing the source code in C:\Clonecoin Using your test editor, search out and replace all instances of “Litecoin” with “Clonecoin”.Make sure your search is case sensitive and search for all instances, replace “Litecoin” with “Clonecoin”, “litecoin” with “clonecoin” etc. Run a search without case sensitivity before continuing to ensure you have all instances.Using your test editor, search out and replace all instances of “LTC” with “CLN”.Litecoin uses port 9333 testnet 19333, rpcport 9332 testnet 19332.We will change them to port 10333 testnet 11333, rpcport 10332 testnet 11332 In this case we change the 48 to 28, therefore all addresses will start with “C”.
Since its really a fork of Litecoin we will bring the version numbers up to 1.0.0.0.Here we change the LTC addresss Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2 to a Clonecoin mystery address starting with c. (see step 6d) We want these to be unique to Clonecoin.Be wary of changing pchMessageStart to to letters other than a-f.All numbers are fine to use.We just change these to be different from Litecoin to avoid the Litecoin messages.These will be replaced later on.Though for now and in the near future they are no longer needed.We remove the testnet genesis block and nonce.To create a genesis block we need an epoch time and a verbal timestamp./ and the latest news headline can be used for the verbal timestamp.We also replace the testnet timestamp.We comment out the hardcoded checkpoint and change the genesis block checkpoint.We just multiplied total coins by 10 and reduced coin based maturity.The higher the number of confirmations the better for the network.This is cutting out a small portion of instamining.
Since we initially increased block rewards by x10, we will increase the base reward from 50 to 500.We then add a premine on block 2 as well as a staggered decrease in block sizes.If you have not already, you will need a splash and logo.You will need to update src/rec/icons - bitcoin.png, bitcoin_testnet.png, bitcoin.icon, bitcoin_testnet.icon (all 256x256 pixels), toolbar.png and toolbar_testnet.png (16x16 pixels).Also update src/res/images, splash.png, splash_testnet.png and about.png.First you will need to create a dedicated node.This is a quick easy guide.Head to Amazon AWS console and create an account.Click on the EC2 link on the left.See AWS pricing Create and instance, select Microsoft Windows Server 2012 R2 Base, select your server preference - we chose t2.micro which is free tier eligible.Click Next: Configure Instance Details, highlight Protect against accidental termination, click review and launch.Go to security settings, open all ports and click launch.Create a security key pair and make sure to download it and keep it safe.
On the aws instance home screen click the Elastic IP tab, click allocate Ip address and confirm.While still in the Elastic IP tab, click allocate and allocate to the instance by clicking the top checkbox and identifying your server.Your instance will take around 15 minutes to launch.Click the instance tab, highlight your instance and press connect.Using your key from earlier, you are now able to download a server shortcut and server password.Using your new Elastic IP, replace your new IP removing Litecoin old seed nodes.We now need to add the ability to hash a new genesis block so we add the following code to main.cpp.Using Msys shell, run.For this we have Clonecoin in C:/Clonecoin If the file already exists, Msys will inform you so.We now need to change the dependency directory locations and comment out the genleveldb command and add the flags for a static build.Now from the Windows cmd, run Your Clonecoin-qt should now be available in your C:\clonecoin\release folder after around 5 minutes.
If errors occur, scroll up and read them try to identify and fix.You should see an error Assertion failed!Navigate to your Clonecoin appdata folder C:\Users\(YOUR*PC*NAME)\AppData\Roaming\Clonecoin and open the debug log in a text editor.The folder is hidden by default, so typing %appdata% in the Windows search bar will bring up access to the roaming\clonecoin folder.Scroll to the bottom of the text to find the following lines.The bottom hash is the merkel root, we take this and add it to main.cpp We now need to recompile the client in Windows cmd.You can remove the path and directory if you still have the client open.The previous Merkel error should not occur and the client should appear to hang on launch.It is now hashing your genesis block.How long this takes can vary from a few seconds to minutes.Once the client hangs with a genesis block error, open your debug text file again in your Clonecoin appdata folder C:\Users\(YOUR*PC*NAME)\AppData\Roaming\Clonecoin We will now add these to main.ccp.
Recompile the Windows QT.From the Windows cmd, run Your Clonecoin-qt should now be available in your C:\clonecoin\release folder.Now you have your client we need to connect the nodes to check everything is working.You can use testnet though its just as easy to use mainnet.Connect to your server we set up earlier or use another local machine.We only create this now to enable mining to check the network.file should be placed in C:\Users\(YOUR**PC**NAME)\AppData\Roaming\clonecoin.To create a conf file, right click new->text document.Copy and paste the code below replacing a suitable username and password.Click save, change file type to all and save as clonecoin.conf.Or just download this one Upload your client to the server and start the client.The two clients should connect.You may need to add your local IPs to the conf file.To do this type cmd to bring up command prompt, type ipconfig and use the IPv4 address in your addnode settings on both machines.Once both clients are connected you can start to mine blocks.
You can either use the traditional Scrypt miner or type setgenerate true -1 into your main console.Mine as many blocks as you want, checking diff adjustment and ensure block rewards are correct.It is advised to confirm some transactions, send some coins and check the client for any errors or adjustments.In this case I missed the toolbar.png and testnet_toolbar.png as a deliberate example of why you “SHOULD ALWAYS CHECK YOUR CLIENT BEFORE RELEASE” If you want to restart the chain you need to delete the chain by going to your Clonecoin roaming folder on both machines and deleting everything.If you followed all the steps above you should be sitting with a lovely source code and compiled client.We have a few things to finish and checkpointing the premine is highly important.Many coin launches have been lost by people not knowing or forgetting to do this step.Without a checkpoint you can very likely kiss your premine goodbye to a hash attack on launch.Start your compiled clients on both machines.
Since we deleted the blockchain earlier mine your premine, plus 2-3 blocks.Open the concole on the clonecoin client and type; getblockhash 1, getblockhash 2, getblockhash 3.We will use these three hashes to checkpoint the premine.We also need some data from the C:\Users\(YOUR**PC**NAME)\AppData\Roaming\clonecoin\debug file.We are looking for the details of the highest checkpointed block, in this case block 3.You will need to convert the last block time to an epochtime date i.e.in this instance, from 2014-11-11 15:02:57 to 1415718177.Use epochconverter for convenience Now we add the block hashes for blocks 1, 2 and 3 and insert the highest block (block 3) details into the checkpoint block details.We also add the estimated number of transactions per day after the checkpoint.Back up your C:\Users\(YOUR**PC**NAME)\AppData\Roaming\clonecoin folder.This now has your premine.You now need to check the checkpoints are correct.On the client that does not have the premine, navigate to C:\Users\(YOUR**PC**NAME)\AppData\Roaming\clonecoin and delete everything EXCEPT wallet.dat (very important, DO NOT DELETE) and clonecoin.conf files.
If your checkpoints are correct the client should update and sync without issues.Clean up your README with your new specifications, rewards, website etc. Remove your build deps and changes from clonecoin-qt.pro Navigate to C:\clonecoin\src\makefile.mingw and open with your text editor.You will see: We change the deps to point to the deps we created earlier.If you chose to place your deps in a different folder, change the code to point to your folders.We also used -static in LDFLAGS=-Wl,--dynamicbase -Wl,--nxcompat -Wl,--large-address-aware -static for a static linked exe, updated UPNP Includes and Lib paths to enable UPNP.In the Msys shell, you can now compile litecoind.Your clonecoind should now be in your C:\clonecoin\src folder.Remove your Clonecoin-qt from the release folder and zip for release.Delete the release, debug and build folders.This is your code for release.Copy and paste your source code into the documents/github/yourcoinnamefolder.In your Windows Github client, click on your client name on the left hand side.
Your Github client should recognise a host of changes if present.Fill in the commit details, select the files that need to be committed, usually all and on by default and press commit.On the top right hand side will be a publish or sync box, click that and the Github Windows client will push the changes and source code to your repository on Github.Open your Github client and ensure it’s sync’d.Click on the commit to you wish to rollback, then revert.On the top right hand side will be a publish or sync box, click that and the Github Windows client will push the revert to your repository on Github.Log into your Github Windows client.Click on the altcoin tab in the left and click sync to ensure your local code is up to date.Edit your local code in your documents/github/yourcoinname folder.Once your Github client picks up the changes enter the commit details and commit to Github.Most errors can be solved with a little effort.The compiler will usually display an error message or warning.
If it’s UPNP error check your directories in your pro file, then check your UPNP deps, rebuild them.Most things can be solved far quicker with a little investigation into the errors vs posting in a forum and awaiting reply.Windows cache has cached the image.The easiest way to solve this is run a program such as Glarys Utilities to clear your PC.Also delete the build folder in between builds to ensure your builds are clean.There are a few easy ways to get a logo./ and try youtube vids.These can be used for quick launches or temporary images while you wait, purchase or make an official one.Download and install a free website editor, Bluegriffon is a prime example.Find yourself a suitable template.Download and edit the template with all your coin details.Create an account at Namecheap, they accept BTC.Register the domain and commission hosting at the same time, that way there is no DNS delay.Usually you can pick up a year hosting with domain and SSL if you want for under .15 BTC.If this is a one-off coin launch then a simple hosting plan will suffice.
If you’re looking to launch more coins, choose a dedicated server or reseller plan.Once your order is confirmed log into cpanel with the details provided, enable cloudflare and ssl of you purchased it.Single hosting plans will require support for SSL, dedicated or reseller accounts have the ability to self enable through WHM.In CPanel, go to file manager and upload your site to the public_html folder.Your website should be now viewable on your domain.Launching a coin is the make or break point.The style of launch will dictate how to prepare.The key to a good launch is timing and consistency.Don’t release the code early and make sure it works.Create your Bitcointalk account.The earlier the better to get rid of posting restrictions on new accounts.Create accounts on Twitter, Facebook, cryptocointalk, IRC, Reddit and all the usual channels.This gives the developer more time, no restrictions with no one looking or ready.With these coins you can set the network up early and don’t have people looking for the code.