From 3dd183f2f92d7b174049338b8b50800eccd7c2d2 Mon Sep 17 00:00:00 2001 From: sidenaio Date: Tue, 11 May 2021 14:10:44 +0500 Subject: [PATCH] Fix flags validation in offline detector --- blockchain/offline_detector.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/blockchain/offline_detector.go b/blockchain/offline_detector.go index 9691d365..d2100707 100644 --- a/blockchain/offline_detector.go +++ b/blockchain/offline_detector.go @@ -152,9 +152,6 @@ func (dt *OfflineDetector) ValidateBlock(head *types.Header, block *types.Block) if !head.Flags().HasFlag(types.OfflinePropose) || *prevAddr != *addr { return errors.New("no offline proposal found") } - if !block.Header.Flags().HasFlag(types.IdentityUpdate) { - return errors.New("if OfflineCommit is set, IdentityUpdate should be set too") - } if !dt.verifyOfflineProposing(block.Header.ParentHash()) { return errors.New(fmt.Sprintf("addr %v should not be set offline, block %v", addr.Hex(), block.Hash().Hex()))