-
Notifications
You must be signed in to change notification settings - Fork 1
Config
Wouter den Bakker edited this page Jun 19, 2018
·
2 revisions
Example of a config file. Fill in the required parameters and change any other parameters that you wish to change. For all variables you can choose to replace them with an environment variable instead. Note that all values are prefixed with VPROC_
| Name | Type | Default | Description |
|---|---|---|---|
| SIGNPREFIX | string | NONE | The prefix used to ensure a message is never valid on multiple blockchains. |
| PRIVATEKEY | string | NONE | The private key the processor should use for signing blocks, which is also required for creating new contracts. |
| DBPASSWORD | string | NONE | The password used to connect to the database. |
| DBUSER | string | processor | The user used to connect to the database. |
| DBNAME | string | blockchain | The name of the database to connect to. |
| DBHOST | string | localhost | The host that runs the database. |
| DBPORT | number | 5432 | The port at which the database is accessible. |
| NODEVERSION | string | 10 | The version of nodejs that is required when running the processor. If the version differs the processor will refuse to run. If no minor or patch version is defined (or it is x) it will ignore that when determining whether to run or not. The processor requires at least 7.6 to run. The processor and nodes should all run the same version. |
| LOGLEVEL | number 0-5 | 0 | The log level of what to print to the log. 0=debug, 1=info, 2=warn, 3=error, 4=cricital, 5=off. Any critical error will result in shutting down the processor (in some cases it may be able to restart itsself, but not always). |
| SENTRYURL | string | NONE | The url for a sentry installation to which any errors are reported if given. |
| BLOCKINTERVAL | number | 5 | How often is should mine a new block (in seconds). It will finish mining the current block when this time runs out. |
| TRANSACTIONSPERBLOCK | number | 100 | The maximum number of transactions it will put in a block. It will finish mining the current block if this number is reached. |
| MAXBLOCKSIZE | number | 1 000 000 | The maximum size of a block (in bytes). It will finish mining the current block if a next transaction will put the blocksize over this limit. |
| MAXMEMORY | number | 1024 | The maximum amount of memory the processor is allowed to use (in MB). If it exceeds this number it will automatically restart itsself. |
{
"VPROC_SIGNPREFIX": "",
"VPROC_PRIVATEKEY": "",
"VPROC_DBPASSWORD": "",
"VPROC_DBUSER": "processor",
"VPROC_DBNAME": "blockchain",
"VPROC_DBHOST": "localhost",
"VPROC_DBPORT": 5432,
"VPROC_NODEVERSION": "10",
"VPROC_LOGLEVEL": 0,
"VPROC_MAXMEMORY": 256,
"VPROC_BLOCKINTERVAL": 5,
"VPROC_TRANSACTIONSPERBLOCK": 500,
"VPROC_MAXBLOCKSIZE": 1000000,
"VPROC_SENTRYURL": ""
}