0

I am creating a new alt coin and I want to know how to generate a Blockchain for that coin. I have already created the genesis block for my new alt coin.

  • 1
    What's the block generation mechanism? Proof-of-work? Proof-of-stake? Something else? Please post the parameters for your altcoin, otherwise, it's impossible to answer your question. – Jimmy Song Feb 16 '15 at 15:53
  • Iam suing Scrypt-Adaptive-Nfactor – Deepak Chauhan Feb 17 '15 at 6:50
  • Are you mining yet? What error messages do you get when you try? – Jimmy Song Feb 17 '15 at 15:18
1

you can try the following steps:

  • bitcoind -daemon # Start bitcoin core
  • bitcoin-cli setgenerate true 1 # You've started a new miner!!
  • tail -f ~/.bitcoin/debug.log # Track your log

    After a while (it depends on the difficulty of your altcoin), a new block will be generated by your miner.


    Check it by typing "bitcoin-cli getblockcount". Every time a new block is genereated, the value increases by one.

    • hi @moshaholo i'm trying to execute this command "bitcoin-cli setgenerate true 1" but i was removed in the new versions, do you know how can i get first block with recently litecoin source?. thanks – schwertfisch Dec 19 '17 at 17:51
    -2

    If you're using some form of Proof-of-Work, i believe you have to generate enough transactions that can fill a block. Of course that 1st block will refer to the genesys block. Then other transactions will fill a 2nd block, that will refer to the 1st. And so on.

    And voilá, you have the blockchain.

    Good luck with your altcoin.

    Your Answer

    By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

    Not the answer you're looking for? Browse other questions tagged or ask your own question.