-
Notifications
You must be signed in to change notification settings - Fork 456
Update forging enable to be more strict #6674
Comments
maybe we can also fix the order of fields to match forging:status command? |
which order are u referring to? |
sometimes users run forgins:status to enable that time, copy paste could lead to errors, so if the order of |
JSON object key is |
no we dont have to change the forging:status output, we can just update the forging:enable input order to match it? |
bad idea in my opinion, this will break existing tools EDIT: |
@dakk what do you mean by |
I mean, lisk-core forging:enable should be able to get automatically values from forging:status; not as default, but by passing an optional parameter. It's up to the delegate to check if he/she want to use that option (like the overwrite), or if he/she want to provide the values. Something like this: lisk-core forging:enable --use-status-values |
@shuse2 a responsible delegate will run |
Fix forging enable condition for zero case - Closes #6674
Description
Forging enable should be strict for case
0, 0, 0
and there is no previous forging dataexpected result: ok
0, 0, 0
and there is non zero previous forging dataexpected result: fail
0, 0, 0
and there is non zero previous forging data with overwrite flagexpected result: ok
x, y, z
and there is non zero previous forging dataexpected result: fail
x, y, z
and there is non zero previous forging data with overwrite flagexpected result: ok
Acceptance Criteria
The text was updated successfully, but these errors were encountered: