lisk-sdk icon indicating copy to clipboard operation
lisk-sdk copied to clipboard

Add nextAllocatedTime to generators list

Open ishantiw opened this issue 2 years ago • 0 comments

Description

Update endpoint chain_getGeneratorList (Chain Endpoint:getGeneratorList) to return nextAllocatedTime for each delegate that will be helpful for off-chain services. Return type will be in JSON format.

nextForgingTime calculation can be used from here https://github.com/LiskHQ/lisk-sdk/blob/4d9ad84576976fee7f7f83a02aad226508595ff3/framework/src/node/node.ts#L300-L317

Acceptance Criteria

  • Add/update unit test to check the return type.

Additional Information

ishantiw avatar Aug 09 '22 15:08 ishantiw