Skip to content

Producer Commands

kstola2 edited this page Jun 25, 2019 · 2 revisions

List of Commands

  • -d or --debug will toggle debug logging
  • -g or --genesis will run the genesis procedure, which will initialize the blockchain and all tables.
  • --supply=<> represents the total static Aurum supply.

Genesis

Before running genesis, make sure that there exists a genesis_hashes.txt file in the same directory as the executable. This file should contain a list of 64-character, hex-encoded wallet addresses, with each address on its own line.

Assuming we have our executable called producer, run:

./producer -d -g --supply=<>

Supply is a positive integer representing the initial supply of Aurum, to be divided equally among all addresses contained in the genesis_hashes.txt file.

Once it is logged that an airdrop is successful, confirm that the following files were created:

blockchain.dat, metadata.db, accounts.db

You can now proceed to build in the blockchain.

Running the Producer

Clone this wiki locally