Skip to content
Snippets Groups Projects
Commit 71004e2e authored by Éloïs's avatar Éloïs
Browse files

feat(conf): add ability to configure pow prefix with env var

parent fb00d593
No related branches found
No related tags found
1 merge request!1402feat(conf): add ability to configure pow prefix with env var
......@@ -118,6 +118,10 @@ export class BlockProver {
constructor(private server: Server) {
this.logger = server.logger;
if (process.env.DUNITER_POW_PREFIX) {
this.server.conf.prefix = parseInt(process.env.DUNITER_POW_PREFIX);
}
const debug = process.execArgv.toString().indexOf("--debug") !== -1;
if (debug) {
//Set an unused port number.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment