-DGRAPHENE_EGENESIS_JSON=""setting. This means we're choosing to not embed a genesis file (yet). It's an override because the install will embed a default genesis file unless we tell it not to.
sudo make installcommand, we have the opportunity to make some customization to the hard-coded configuration. This config is located in this file:
sudo vim $HOME/src/peerplays/libraries/chain/include/graphene/chain/config.hpp, for example, you can tweak dozens of settings. Things like:
sudo make installfrom the
witness_nodeprogram to generate a genesis template in the directory.
witness_node_data_dirdirectory that stores the
config.inifile we'll need later.
my-genesis.jsonfile if you wish. In this file, you can specify accounts that exist from the beginning of the chain as well as their account balance. You can add assets, change the fees for operations, add witness accounts, add committee member accounts, and change some initial parameters.
get_dev_keysprogram is used.
get_dev_keyprogram will use
test-account-activeto generate a public/private key pair and address, each.
my-genesis.jsonfile like the following:
sudo vim $HOME/genesis/my-genesis.json
config.inifile as the
private-key. It's best to leave these alone.
config.inifile. And second, you won't have to supply the chain id to the
cli_walletprogram when interacting with the testnet.
-DGRAPHENE_EGENESIS_JSON="$HOME/genesis/my-genesis.json"option in the make cache to use this file in the build process.
config.inifile to finish setting up the testnet.
sudo vim $HOME/witness_node_data_dir/config.ini
--seed-nodes="". If we don't do this, the program will attempt to use some hard-coded default seed nodes which don't have anything to do with our private testnet.
cli_walletprogram to prevent unintended transactions from happening on the wrong chain.
8b7bd36a146a03d0e5d0a971e286098f41230b209d96f92465cd62bd64294824with your own chain id from earlier.
new >>>prompt, you have successfully connected to your node and you're ready to create a password with
nathan) imported into the wallet and this account is well funded with
TESTas we have claimed the funds stored in the genesis file. You can view this account by using this command:
alpha) so that we can transfer funds back and forth between
nathanto LTM, before we can proceed with creating other accounts. To upgrade to LTM, use the
nathanhas now a LTM status:
membership_expiration_dateyou should see something similar to
2106-02-07T06:28:15. If you get
1970-01-01T00:00:00something is wrong and
nathanhas not been successfully upgraded.
nathanas registrar. But first we need to get hold of the public key for the new account. We do it by using the
register_accountcommand allows you to register an account using only a public key.
alpha's private key:
alpha. For that we use the
alphahas indeed received the money:
p2p-endpointas the second node's