lisk-sdk
lisk-sdk copied to clipboard
Lisk commander `generator:disable` & `generator:enable` fail with error
Lisk commander is failing with error 'Missing property, must have required property maxHeightGenerated
'
Expected behavior
It should work without throwing any error
Actual behavior
It throws error
Steps to reproduce
- ./bin/run generator:disable
$ ./bin/run generator:disable lskz89nmk8tuwt93yzqm6wu2jxjdaftr9d5detn8v --password password123 --pretty
Error: Lisk validator found 1 error[s]:
Missing property, must have required property 'maxHeightGenerated'
at Object.convertRPCError (~/Projects/lisk-sdk/elements/lisk-api-client/src/utils.ts:19:2)
at IPCChannel._listenToRPCResponse (~/Projects/lisk-sdk/elements/lisk-api-client/src/ipc_channel.ts:147:39)
- ./bin/run generator:enable
$ ./bin/run generator:enable lskz89nmk8tuwt93yzqm6wu2jxjdaftr9d5detn8v 100 100 10 --password password123 --pretty
Error: Lisk validator found 1 error[s]:
Missing property, must have required property 'maxHeightGenerated'
at Object.convertRPCError (~/Projects/lisk-sdk/elements/lisk-api-client/src/utils.ts:19:2)
at IPCChannel._listenToRPCResponse (~/Projects/lisk-sdk/elements/lisk-api-client/src/ipc_channel.ts:147:39)
Additional Information
Endpoint the command is using is implemented here https://github.com/LiskHQ/lisk-sdk/blob/development/framework/src/engine/generator/endpoint.ts#L120
Which version(s) does this affect? (Environment, OS, etc...)
6.0.0
Relevant issue #7528