Reuse old shard state if no validator is elected

pull/3546/head
Rongjian Lan 4 years ago committed by Leo Chen
parent 3d6858aba5
commit 38bb234ebc
  1. 4
      shard/committee/assignment.go

@ -350,6 +350,10 @@ func eposStakedCommittee(
)
}
if len(completedEPoSRound.AuctionWinners) == 0 {
utils.Logger().Warn().Msg("No elected validators in the new epoch!!! Reuse old shard state.")
return stakerReader.ReadShardState(big.NewInt(0).Sub(epoch, big.NewInt(1)))
}
return shardState, nil
}

Loading…
Cancel
Save