The settings files are located in the directory /opt/cellframe-node/etc/network
Each network has its own file of settings <network name> .cfg and directory <network name> with the settings of the chains of this network.
# Cellframe Blockchain: development network
# General section
[general]
# Network ID
id=0xFF00000000000001
# Network name
name=private
type=testing
# Possible values: light, full, archive, master, root
node-role=full
# The alias of the current node is indicated here, this node must exist in the list of nodes
node-alias=addr-node01
# Here is the IP address of the current node, this parameter replaces node-alias
node-ipv4=195.154.133.160
# Unique prefix for creating a group in the mempool
gdb_groups_prefix=private
# List of addresses, ports, remote nodes with which the current node will communicate
seed_nodes_ipv4=[195.154.133.160, 62.210.90.227]
seed_nodes_port=[8097, 8097]
seed_nodes_aliases=[cellframe.testnet.root.0,cellframe.testnet.root.1]
seed_nodes_addrs=[ffff::0000::0000::0001,ffff::0000::0000::0002]
# If the chains of the network have a consensus dag-poa, then to create events, a certificate containing a private key must be specified here to sign new events,
# moreover, in the consensus settings, a certificate with a public key corresponding to this certificate must be specified
[dag-poa]
events-sign-cert=mycert
#If the network chains have a dag-pos consensus, then to create events, a local wallet containing a private key must be specified here to sign new events
[dag-pos]
events-sign-wallet=mywallet
The directory <network name> may contain several files with the settings of the chains of this network <chain name>.cfg.
All chains have a common section [chain]
[chain]
# Unique chain ID
id=0x0000000000000000
shard_id=0x0000000000000000
# Chain name
name=zerochain
# Possible values [token, emission, transaction]
# What types of datums a chain can contain, possible types: token, emission, transaction
datum_types=[transaction]
# Type of consensus for chain, possible values: dag_poa, dag_pos, gdb
consensus=dag_poa
Depending on the type of chain consensus, the rest of the settings will be different.
# Directory where files with events for the current chain will be stored
[files]
storage_dir=/opt/cellframe-node/var/lib/network/cellframe-testnet/zerochain/
[dag]
#
# Whether to add hashes of other events to the event
is_single_line=true
# Whether the blockchain is split into shards, not yet supported
is_celled=false
# Chains are written directly to files, otherwise, first into a round, from a round they can be overwritten into a file with the dag round complete command
is_add_directly=false
# Maximum number of hashes in an event
datum_add_hashes_count=1
[dag-poa]
# Prefix for the names of certificates used to check event signatures
auth_certs_prefix=cellframe.testnet.root
# Maximum number of certificates
auth_certs_number=7
# The number of signatures with which the event should be signed, currently only 1 is supported
auth_certs_number_verify=1 #4
# Additional directory where to look for certificates for checking event signatures
auth_certs_dir=/opt/cellframe-node/share/ca
# Proof-of-State consensus config
[dag-pos]
# Tokens hold and hold_value must be equel size
# KELT - test token, KEL - main tokem
# To successfully check the event, it must have tokens of at least one of the following types
tokens_hold=[KELT,KEL]
# 1000 coins for both
# The emission of tokens must be at least the following values
tokens_hold_value=[1000000000000000,1000000000000000]
[gdb]
# Celled means sharded
# Whether the blockchain is split into shards, not yet supported
celled=false