onflow/flow-core-contracts

Add Stored list of approved node IDs

Closed this issue · 0 comments

Issue To Be Solved

The staking admin needs to be able to specify the list of approved node IDs before the staking auction ends so that nodes cannot sneak in before the end of the staking auction is triggered automatically

Suggest A Solution

  • Store an array of String in the staking account storage
  • Admin function to set a new approved list
  • getter function to retrieve this
  • Remove approvedNodeIDs parameter from the end staking auction functions in the staking and epoch contracts
  • update transactions to use the new methods
  • add tests