Skip to content

Commit

Permalink
Minor change that fix merged code (#1879)
Browse files Browse the repository at this point in the history
* merge fix

* Fix failing E2E test

---------

Co-authored-by: Stefan Negovanović <stefan@ethernal.tech>
  • Loading branch information
stana-miric and Stefan-Ethernal committed Sep 6, 2023
1 parent 06153fb commit daf9402
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 19 deletions.
10 changes: 0 additions & 10 deletions consensus/polybft/consensus_runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,16 +386,6 @@ func (c *consensusRuntime) OnBlockInserted(fullBlock *types.FullBlock) {
c.logger.Error("failed to post block in governance manager", "err", err)
}

// handle governance events that happened in block
if err := c.governanceManager.PostBlock(postBlock); err != nil {
c.logger.Error("failed to post block in governance manager", "err", err)
}

// handle governance events that happened in block
if err := c.governanceManager.PostBlock(postBlock); err != nil {
c.logger.Error("failed to post block in governance manager", "err", err)
}

if isEndOfEpoch {
if epoch, err = c.restartEpoch(fullBlock.Block.Header); err != nil {
c.logger.Error("failed to restart epoch after block inserted", "error", err)
Expand Down
Loading

0 comments on commit daf9402

Please sign in to comment.