From fbd564a1e2d06f847d5d864817badeaecae50c80 Mon Sep 17 00:00:00 2001 From: Ribao Wei Date: Mon, 10 May 2021 08:24:05 -0700 Subject: [PATCH] Make sure parent block is processed before sending to consensus engine --- netsync/request.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netsync/request.go b/netsync/request.go index c8ddcd5e..f25c4758 100644 --- a/netsync/request.go +++ b/netsync/request.go @@ -752,7 +752,7 @@ func (rm *RequestManager) passReadyBlocks() { // Check if block's parent has already been added to chain. If not, skip block found := false for _, parent := range parents { - if parent.Hash() == block.Parent { + if parent.Hash() == block.Parent && parent.Status.IsValid() { found = true break }