lisk-sdk
lisk-sdk copied to clipboard
Add nextAllocatedTime to generators list
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.