From 84828e7c94b49bcecefa1e4a9cf24677ab405594 Mon Sep 17 00:00:00 2001
From: Jaynti Kanani <jdkanani@gmail.com>
Date: Wed, 15 May 2019 19:26:21 +0530
Subject: [PATCH] fix epoch

---
 consensus/bor/bor.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/consensus/bor/bor.go b/consensus/bor/bor.go
index 1904871f5..738054979 100644
--- a/consensus/bor/bor.go
+++ b/consensus/bor/bor.go
@@ -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[:])
-- 
GitLab