iotexproject / iotex-core

Official implementation of IoTeX blockchain protocol in Go.
https://iotex.io
Apache License 2.0
1.55k stars 322 forks source link

Candidate State Manager and Candidate State Reader #4301

Open CoderZhi opened 1 week ago

CoderZhi commented 1 week ago
  1. CandidateStateManager extends CandidateStateReader
  2. Clean up the two interfaces
  3. Use appropriate one, e.g., use StateReader in the readonly functions

    Description of the code refactor

Why is this needed