Skip to content

Commit

Permalink
Make sure parent block is processed before sending to consensus engine
Browse files Browse the repository at this point in the history
  • Loading branch information
weiribao committed May 10, 2021
1 parent 26a6aec commit fbd564a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netsync/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit fbd564a

Please sign in to comment.