From c399c88e0812af6141977af49e315260bcb66e24 Mon Sep 17 00:00:00 2001 From: fudongbai <296179868@qq.com> Date: Tue, 11 Aug 2020 15:13:10 +0800 Subject: [PATCH] fix not return error when blockTimeVerifyForRamanujanFork failed --- consensus/parlia/parlia.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/parlia/parlia.go b/consensus/parlia/parlia.go index 9cdf07e5ad..ea4b4b33fc 100644 --- a/consensus/parlia/parlia.go +++ b/consensus/parlia/parlia.go @@ -393,7 +393,7 @@ func (p *Parlia) verifyCascadingFields(chain consensus.ChainReader, header *type err = p.blockTimeVerifyForRamanujanFork(snap, header, parent) if err != nil { - return nil + return err } // Verify that the gas limit is <= 2^63-1