-
Notifications
You must be signed in to change notification settings - Fork 48
getting started_configure server
bonyong lee edited this page Oct 31, 2018
·
9 revisions
We can get three types of node as configuration.
- BP Node - Block provider node, which mines and propagates blocks
- Full Node - Node to get and validate all blocks
- Single Node - BP Node without peer, which uses to something like test.
We describe only single node configuration in this. More will updated for the BP Node and full node.
We will show default configuration file next. You can check the each fields' meaning in here
# aergo TOML Configuration File (https://github.com/toml-lang/toml)
# base configurations
datadir = ".aergo/data"
enableprofile = false
profileport = 6060
enablerest = false
enabletestmode = false
[rpc]
netserviceaddr = "127.0.0.1"
netserviceport = 7845
nstls = false
nscert = ""
nskey = ""
nsallowcors = false
[rest]
restport = "8080"
[p2p]
netprotocoladdr = "0.0.0.0"
netprotocolport = 7846
nptls = false
npcert = ""
npkey = ""
npaddpeers = [
]
npmaxpeers = "100"
nppeerpool = "100"
[blockchain]
# blockchain configurations
maxblocksize = 1048576
[mempool]
showmetrics = false
dumpfilepath = ".aergo/mempool.dump"
[consensus]
enablebp = true
enabledpos = false
blockinterval = 1
dposbps = 23
bpids = [
]
To enable testmode, either pass the command line option --testmode
to aergosvr or set enabletestmode = true
in the configuration.
In testmode, all new accounts are assigned a high number of Aergo tokens by default, basically circumventing balance checks. This means you can send any transaction without first pre-funding hard-coded accounts using a genesis block.
Testmode MUST NOT be used in production.