-
Notifications
You must be signed in to change notification settings - Fork 456
Enable forging on Genesis Delegates while starting devnet - Closes #3734 #3740
Conversation
Signed-off-by: Maciej Baj <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are setting default for all components
and all modules
from the sample. But not using it for app controller
, that may lead to confusion in future.
Do you really think linking sample files to the framework is a good idea?
I would suggest to keep these two completely separate, you can still export the devnet json file. And the user should explicitly import and use it in the app. So he must be aware what he is doing or what sensitive information like delegates, forging he is using.
const {Application, sampleGenesisBlock, forgingEnabledConfig} = require('lisk-framework');
const app = new Application(sampleGenesisBlock, forgingEnabledConfig);
So for end user you can export different configurations files with different useable cases, and they will required that file and know why the app is behaving like that.
@nazarhussain I will export the config filled with all of the possible defaults from lisk-sdk and use it in sample app by passing as a second parameter after GenesisBlock. |
e85045a
to
b644e13
Compare
Signed-off-by: Maciej Baj <[email protected]>
Signed-off-by: Maciej Baj <[email protected]>
Signed-off-by: Maciej Baj <[email protected]>
"port": 5432, | ||
"database": "lisk_dev", | ||
"user": "lisk", | ||
"password": "password", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest not to set username/password here. So while running the sample, user can use their own PostgreSQL user, rather than creating a new user.
If usage of this file is intended for internal demo, then ok.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That password was "always" present here - the default lisk
user set up is described in the Postgres installation manual.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer to leave it this way, so there is a default setting.
What was the problem?
Each time I start an application created using Alpha SDK I need to specify the full set of delegates in the entry file of a project.
How did I fix it?
How to test it?
Start a sample app and verify whether the "Forgin enabled" logs are there.
Review checklist