Skip to content

Commit

Permalink
Follower: revert check of join block different from fetched block
Browse files Browse the repository at this point in the history
Signed-off-by: Yoav Tock <tock@il.ibm.com>
Change-Id: I7089df4f1bfc200a5f17582df0da7d4172f8f09b
  • Loading branch information
tock-ibm committed Jun 6, 2023
1 parent 9e6efe9 commit 24e27bf
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions orderer/common/follower/follower_chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import (
"sync"
"time"

"github.com/golang/protobuf/proto"

"github.com/hyperledger/fabric-protos-go/common"
"github.com/hyperledger/fabric/bccsp"
"github.com/hyperledger/fabric/common/flogging"
Expand Down Expand Up @@ -347,10 +345,6 @@ func (c *Chain) pull() error {
c.logger.Info("Onboarding finished successfully, pulled blocks up to join-block")
}

if c.joinBlock != nil && !proto.Equal(c.ledgerResources.Block(c.joinBlock.Header.Number).Data, c.joinBlock.Data) {
c.logger.Panicf("Join block (%d) we pulled mismatches block we joined with", c.joinBlock.Header.Number)
}

err = c.pullAfterJoin()
if err != nil {
return errors.WithMessage(err, "failed to pull after join block")
Expand Down

0 comments on commit 24e27bf

Please sign in to comment.