Closed
Description
I want to propose the new RPC chain_getPossibleAuthors
.
Currently, there is no way to get the validator list.
To generalize this, I want to add an RPC to get the authors that can be author of the block.
The purpose of this RPC is returning the sets of the account that can generate the blocks at the given block number.
It will return three of one.
[]
- It returns an empty list if anyone can be the block author.
- PoW chain will return an empty list always.
PlatformAddress[]
- Only some accounts can be the block author in PoA or Tendermint.
- CodeChain will return the accounts that can be a block author in the given block number.
null
- The node returns
null
if it cannot calculate the possible author set. - If the chain supports dynamic validators and the given block number is larger than the next block, the node cannot calculate the possible author set.
- The node returns
Params
- block number:
number
|null
null
means the possible authors of the next block.
Returns
null
| PlatformAddress[]