fix epoch

This commit is contained in:
Jaynti Kanani 2019-05-15 19:26:21 +05:30
parent f2cd20e591
commit 84828e7c94
No known key found for this signature in database
GPG key ID: 4396982C976BAE5E

View file

@ -365,7 +365,7 @@ func (c *Bor) verifyCascadingFields(chain consensus.ChainReader, header *types.H
return err
}
// If the block is a checkpoint block, verify the signer list
if number%c.config.ProducerInterval == 0 {
if number%c.config.Epoch == 0 {
signers := make([]byte, len(snap.Signers)*common.AddressLength)
for i, signer := range snap.signers() {
copy(signers[i*common.AddressLength:], signer[:])