mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-13 15:33:47 +00:00
fix epoch
This commit is contained in:
parent
f2cd20e591
commit
84828e7c94
1 changed files with 1 additions and 1 deletions
|
|
@ -365,7 +365,7 @@ func (c *Bor) verifyCascadingFields(chain consensus.ChainReader, header *types.H
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
// If the block is a checkpoint block, verify the signer list
|
// 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)
|
signers := make([]byte, len(snap.Signers)*common.AddressLength)
|
||||||
for i, signer := range snap.signers() {
|
for i, signer := range snap.signers() {
|
||||||
copy(signers[i*common.AddressLength:], signer[:])
|
copy(signers[i*common.AddressLength:], signer[:])
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue