forknote / cryptonote-generator

Generate Cryptonote coin with 1 command
104 stars 211 forks source link

missing documentation on premined coins #34

Open streamcoindev opened 6 years ago

streamcoindev commented 6 years ago

theres no documentation on how the genesis block reward first i am mining right now and ony getting a few coins at a time the first block didnt had the premine value

pmitchev commented 6 years ago

./forknoted --config-file X --print-genesis-tx --genesis-block-reward-address ADDRESS

you can use as many --genesis-block-reward-address as you want

streamcoindev commented 6 years ago

this can be closed

gldneagl commented 6 years ago

Looks like a Catch-22 to me... at the least from where I am sitting. According to what I have read elsewhere on this subject...

A new coin has to be compiled with genesis block as well as a wallet address to premine to, but you cannot create a wallet address without compiling the daemon first >>> correct??

The forknote form has a form field for an address that without already having compiled the daemon and run a wallet command you cannot yet have ready to use.

Sorry if I'm sounding like a noob, but with twenty years into building Linux systems, this element of the build process has my mind going in a circle.

I have also found a mention of performing the config edit without an address to mine to that states that the first miner will receive the genesis_block_reward.

I will try that method and report back.

gldneagl commented 6 years ago

That didn't work.

gldneagl commented 6 years ago

Still just get a form error ""invalid address" when I try "any old genesis_block_reward" string

pmitchev commented 6 years ago

Some nice guy made this video about creating forknote coin with premine with all steps required: https://www.youtube.com/watch?v=cI_mICjgn6U

intrinsiccoin commented 6 years ago

I did some research on this issue. To see the premined coins, these are the steps you need to follow (same steps that are mentioned in the documentation):

  1. Generate config file from http://forknote.net/create.
  2. Build your code.
  3. Generate a new simple wallet address.
  4. Create the genesis tx hex and replace the GENESIS_COINBASE_TX_HEX in the config.json file.
  5. Build your code again.
  6. Launch the daemon and miner.
  7. MOST IMPORTANT STEP: when you launch the simple wallet use the following command : ./simplewallet --SYNC_FROM_ZERO. In case, you have already seen your wallet balance starting from Height 1, just run reset command so that cached data is deleted and replaced from the nodes. This way you see your premined coins which start from HEIGHT 0.

Not sure if I explained it in a logical way but hope you guys somehow get the point! :-)

pmitchev commented 6 years ago

I will fix this in the documentation. You can fix error in the site repository too: https://github.com/forknote/forknote.net

intrinsiccoin commented 6 years ago

When I used the forknote.net binaries it automatically started sync from Height 0. So this is not an issue with that repository. So I did not have to use the --SYNC_FROM_ZERO option with that code.

spencershaw commented 6 years ago

In step's 2 and 5 when you write "Build your code" are you talking about re-compiling using "make" ?