-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 install
command, we have the opportunity to make some customization to the hard-coded configuration. This config is located in this file:$HOME/src/peerplays/libraries/chain/include/graphene/chain/config.hpp
sudo vim $HOME/src/peerplays/libraries/chain/include/graphene/chain/config.hpp
, for example, you can tweak dozens of settings. Things like:PPY
in Production, TEST
in Develop)PPY
in Production, TEST
in Develop)sudo make install
from the $HOME/src/peerplays
directory.witness_node
program to generate a genesis template in the directory.witness_node_data_dir
directory that stores the config.ini
file we'll need later.my-genesis.json
file 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_keys
program is used.get_dev_key
program will use test-account-owner
and then test-account-active
to generate a public/private key pair and address, each.my-genesis.json
file like the following:sudo vim $HOME/genesis/my-genesis.json
config.ini
file as the private-key
. It's best to leave these alone.cli_wallet
later.config.ini
file. And second, you won't have to supply the chain id to the cli_wallet
program 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.ini
file 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_wallet
program to prevent unintended transactions from happening on the wrong chain.cli_wallet
program.8b7bd36a146a03d0e5d0a971e286098f41230b209d96f92465cd62bd64294824
with your own chain id from earlier.new >>>
prompt, you have successfully connected to your node and you're ready to create a password with set_password
.nathan
using the import_key
command:nathan
happens to be the account name defined in the genesis file. If you had edited your my-genesis.json
file just after it was created, you could have put a different name there. Also, note that 5KQwrPbwdL...P79zkvFD3
is the private key defined in the config.ini
file.import_balance
command:nathan
) imported into the wallet and this account is well funded with TEST
as 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 nathan
and alpha
.nathan
to LTM, before we can proceed with creating other accounts. To upgrade to LTM, use the upgrade_account
command:nathan
has now a LTM status:membership_expiration_date
you should see something similar to 2106-02-07T06:28:15
. If you get 1970-01-01T00:00:00
something is wrong and nathan
has not been successfully upgraded.nathan
as registrar. But first we need to get hold of the public key for the new account. We do it by using the suggest_brain_key
command:TEST78CuY47V...WPr1zRL5
5JDh3XmH...9idNisYnE
alpha
suggest_brain_key
command is random) so make sure you use those. Also, you are free to choose any other name different from alpha
.register_account
command allows you to register an account using only a public key.TEST78CuY4...WPr1zRL5
with your version of it.import_key
command and alpha
's private key:5JDh3XmH...9idNisYnE
with your version of it.nathan
to alpha
. For that we use the transfer
command:here is some cash
is an arbitrary memo you can attach to a transfer. If you don't need a memo, just use ""
instead.alpha
has indeed received the money:config.ini
:config.ini
:p2p-endpoint
as the second node's seed-node
.update_witness
).got_block
)