lisk-sdk
lisk-sdk copied to clipboard
generator:enable command doesn't have a valid lisk32 address in EXAMPLES
Expected behavior
Actual behavior
Steps to reproduce
$ ./bin/run generator:enable --help
Enable forging for given delegate address.
USAGE
$ dpos-mainchain generator:enable ADDRESS HEIGHT MAXHEIGHTPREVIOUSLYFORGED MAXHEIGHTPREVOTED
ARGUMENTS
ADDRESS Address of an account in a lisk32 format.
HEIGHT Last forged block height.
MAXHEIGHTPREVIOUSLYFORGED Delegates largest previously forged height.
MAXHEIGHTPREVOTED Delegates largest prevoted height for a block.
OPTIONS
-d, --data-path=data-path Directory path to specify where node data is stored. Environment variable "LISK_DATA_PATH" can also be used.
-w, --password=password Specifies a source for your secret password. Command will prompt you for input if this option is not set.
Examples:
- --password=pass:password123 (should only be used where security is not important)
--pretty Prints JSON in pretty format rather than condensed.
EXAMPLES
generator:enable ab0041a7d3f7b2c290b5b834d46bdc7b7eb85815 100 100 10
generator:enable ab0041a7d3f7b2c290b5b834d46bdc7b7eb85815 100 100 10 --overwrite
generator:enable ab0041a7d3f7b2c290b5b834d46bdc7b7eb85815 100 100 10 --data-path ./data
generator:enable ab0041a7d3f7b2c290b5b834d46bdc7b7eb85815 100 100 10 --data-path ./data --password your_password
Now if we try to use address from EXAMPLES, it throws error "Property '.address' must match format "lisk32""
$ ./bin/run generator:enable ab0041a7d3f7b2c290b5b834d46bdc7b7eb85815 100 100 10
? Enter password to decrypt the encrypted passphrase: ***
Error: Lisk validator found 2 error[s]:
Missing property, must have required property 'maxHeightGenerated'
Property '.address' must match format "lisk32"
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)
Which version(s) does this affect? (Environment, OS, etc...)
Relevant issue: #7526