Failed to sync block from start in testnet
@@ -56,6 +56,9 @@ func CandidatesByHeight(sr protocol.StateReader, height uint64) ([]*state.Candid
// KickoutListByEpoch returns array of unqualified delegate address in delegate pool for the given epochNum
func KickoutListByEpoch(sr protocol.StateReader, epochNum uint64) (*vote.Blacklist, error) {
blackList := &vote.Blacklist{}
+ if epochNum == 1 {
+ return blackList, nil
+ }
// Load kick out list on the given epochNum from underlying db
blackListKey := ConstructBlackListKey(epochNum)
err := sr.State(blackListKey, blackList)
