Skip to content

Proposal for chain_getPossibleAuthors #1617

Closed
@sgkim126

Description

@sgkim126

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.

Params

  1. block number: number | null
    • null means the possible authors of the next block.

Returns

null | PlatformAddress[]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions