Skip to content

Commit

Permalink
find and fix error
Browse files Browse the repository at this point in the history
Signed-off-by: Fedor Partanskiy <pfi79@mail.ru>
  • Loading branch information
pfi79 committed Jan 8, 2024
1 parent 16856f9 commit 3fc35e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion integration/raft/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1261,7 +1261,7 @@ var _ = Describe("EndToEnd reconfiguration and onboarding", func() {
o2 := network.Orderer("orderer2")
o3 := network.Orderer("orderer3")

By("Waiting for them to elect a leader")
By("Waiting for them to select a leader")
FindLeader(ordererRunners)

assertBlockReception(map[string]int{
Expand Down
4 changes: 4 additions & 0 deletions orderer/common/follower/follower_chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ func (c *Chain) Start() {

// Halt signals the Chain to stop and waits for the internal go-routine to exit.
func (c *Chain) Halt() {
c.logger.Info("PFI03")
c.halt()
c.logger.Info("PFI04")
<-c.doneChan
}

Expand Down Expand Up @@ -353,7 +355,9 @@ func (c *Chain) pull() error {

// Trigger creation of a new consensus.Chain.
c.logger.Info("Block pulling finished successfully, going to switch from follower to a consensus.Chain")
c.logger.Info("PFI01")
c.halt()
c.logger.Info("PFI02")
c.chainCreator.SwitchFollowerToChain(c.ledgerResources.ChannelID())

return nil
Expand Down

0 comments on commit 3fc35e0

Please sign in to comment.