Don't raise future block errors in Quorum mode.

This commit is contained in:
Joel Burget 2017-10-18 10:50:27 -04:00
parent 4909df0bd4
commit 53173b96d4
1 changed files with 1 additions and 1 deletions

View File

@ -967,7 +967,7 @@ func (bc *BlockChain) InsertChain(chain types.Blocks) (int, error) {
// is exceeded the chain is discarded and processed at a later time
// if given.
max := big.NewInt(time.Now().Unix() + maxTimeFutureBlocks)
if block.Time().Cmp(max) > 0 {
if block.Time().Cmp(max) > 0 && !bc.config.IsQuorum {
return i, fmt.Errorf("future block: %v > %v", block.Time(), max)
}
bc.futureBlocks.Add(block.Hash(), block)