Update README.md

This commit is contained in:
Nikko
2018-12-09 00:33:03 +07:00
committed by GitHub
parent c81cc7bf9a
commit 4988d7a0f2

View File

@@ -3,14 +3,15 @@ This is just a function that will generate the first transaction of a blockcahin
Found in the source of the Pura coin extracted it so that it would be easy to insert it in any altcoin based on Bitcoin.
It is working regardless of the hashing algorithm you are using.
```How to use it?
<h1>How to use it?</h1>
1- Copy the function at the top of you chainparams.cpp code.
2- copy the call to the function after the call to CreateGenesisBlock, it should look like this
[code]
```
genesis = CreateGenesisBlock(youttime, youtnonce, 0x1d00ffff, 1, 50 * COIN);
MineGenesis(genesis, const uint256, consensus.powLimit, true)
[/code]
```
Compile and run ./src/qt/yourcoin-qt
@@ -20,6 +21,6 @@ Don't forget to comment the call to ManeGenesis once you have modified your chai
The steps to create a basic altcoin with genesis is explained here: https://bitcointalk.org/index.php?topic=3345808.0
```License
<h1>License</h1>
Distributed under the MIT software license. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. This product includes cryptographic software written by Eric Young (eay@cryptsoft.com), and UPnP software written by Thomas Bernard.